Changeset 59567
- Timestamp:
- 12/31/2024 07:17:10 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r59566 r59567 3391 3391 3392 3392 $counts = wp_cache_get( $cache_key, 'counts' ); 3393 if ( false == $counts ) { 3393 3394 if ( false === $counts ) { 3394 3395 $and = wp_post_mime_type_where( $mime_type ); 3395 3396 $count = $wpdb->get_results( "SELECT post_mime_type, COUNT( * ) AS num_posts FROM $wpdb->posts WHERE post_type = 'attachment' AND post_status != 'trash' $and GROUP BY post_mime_type", ARRAY_A );
Note: See TracChangeset
for help on using the changeset viewer.