Coding Standards: Use strict comparison in wp_count_attachments().

Follow-up to [54255].

Props aristath, poena, afercia, SergeyBiryukov.
See #62279.
Built from https://develop.svn.wordpress.org/trunk@59567


git-svn-id: http://core.svn.wordpress.org/trunk@58953 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2024-12-31 19:19:25 +00:00
parent 54aeb1d515
commit 53704a95ce
2 changed files with 3 additions and 2 deletions

View File

@ -3390,7 +3390,8 @@ function wp_count_attachments( $mime_type = '' ) {
);
$counts = wp_cache_get( $cache_key, 'counts' );
if ( false == $counts ) {
if ( false === $counts ) {
$and = wp_post_mime_type_where( $mime_type );
$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 );

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.8-alpha-59566';
$wp_version = '6.8-alpha-59567';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.