Changeset 24189 for trunk/wp-admin/includes/class-wp-media-list-table.php
- Timestamp:
- 05/07/2013 04:35:03 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-media-list-table.php
r24182 r24189 48 48 $_num_posts = (array) wp_count_attachments(); 49 49 $_total_posts = array_sum($_num_posts) - $_num_posts['trash']; 50 if ( !isset( $total_orphans ) ) 51 $total_orphans = $wpdb->get_var( "SELECT COUNT( * ) FROM $wpdb->posts WHERE post_type = 'attachment' AND post_status != 'trash' AND post_parent < 1" ); 50 $total_orphans = $wpdb->get_var( "SELECT COUNT( * ) FROM $wpdb->posts WHERE post_type = 'attachment' AND post_status != 'trash' AND post_parent < 1" ); 52 51 $matches = wp_match_mime_types(array_keys($post_mime_types), array_keys($_num_posts)); 53 52 foreach ( $matches as $type => $reals )
Note: See TracChangeset
for help on using the changeset viewer.