Skip to content

Commit 7fedfd4

Browse files
Coding Standards: Use strict comparison in wp_count_attachments().
Follow-up to [54255]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. git-svn-id: https://develop.svn.wordpress.org/trunk@59567 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 2ba8433 commit 7fedfd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wp-includes/post.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3390,7 +3390,8 @@ function wp_count_attachments( $mime_type = '' ) {
33903390
);
33913391

33923392
$counts = wp_cache_get( $cache_key, 'counts' );
3393-
if ( false == $counts ) {
3393+
3394+
if ( false === $counts ) {
33943395
$and = wp_post_mime_type_where( $mime_type );
33953396
$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 );
33963397

0 commit comments

Comments
 (0)