Making WordPress.org


Ignore:
Timestamp:
12/07/2023 08:38:27 AM (2 years ago)
Author:
dd32
Message:

Plugin Directory: Reviewer Tools: Make the Zip & LOC columns sortable, cleanup the sort metadata after the ZIP is removed.

See #7285.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/list-table/class-plugin-posts.php

    r13021 r13024  
    667667        }
    668668
    669         $attachments = get_posts( [
    670             'post_parent'    => $post->ID,
    671             'post_type'      => 'attachment',
    672             'post_mime_type' => 'application/zip',
    673             'posts_per_page' => 1,
    674             'orderby'        => 'post_date',
    675             'order'          => 'DESC',
    676         ] )[0];
    677 
    678669        foreach ( get_attached_media( 'application/zip', $post ) as $zip_file ) {
    679670            $zip_size = size_format( filesize( get_attached_file( $zip_file->ID ) ), 1 );
Note: See TracChangeset for help on using the changeset viewer.