Make WordPress Core

Changeset 59567


Ignore:
Timestamp:
12/31/2024 07:17:10 PM (5 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp_count_attachments().

Follow-up to [54255].

Props aristath, poena, afercia, SergeyBiryukov.
See #62279.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r59566 r59567  
    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 );
Note: See TracChangeset for help on using the changeset viewer.