Changeset 13024 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/list-table/class-plugin-posts.php
- Timestamp:
- 12/07/2023 08:38:27 AM (2 years ago)
- 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 667 667 } 668 668 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 678 669 foreach ( get_attached_media( 'application/zip', $post ) as $zip_file ) { 679 670 $zip_size = size_format( filesize( get_attached_file( $zip_file->ID ) ), 1 );
Note: See TracChangeset
for help on using the changeset viewer.