Make WordPress Core


Ignore:
Timestamp:
04/10/2023 12:54:28 PM (18 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison where count() is involved.

Follow-up to [1636], [6974], [8114], [10322], [13326], [14760], [18006], [18541], [19743], [23249], [24115], [33359].

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

File:
1 edited

Legend:

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

    r55597 r55642  
    22532253                if ( ! $post_type ) {
    22542254                    $post_type = 'any';
    2255                 } elseif ( count( $post_type ) == 1 ) {
     2255                } elseif ( count( $post_type ) === 1 ) {
    22562256                    $post_type = $post_type[0];
    22572257                }
Note: See TracChangeset for help on using the changeset viewer.