Make WordPress Core


Ignore:
Timestamp:
05/23/2020 04:20:10 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison for more count() calls.

Follow-up to [47848].

Props mukesh27.
Fixes #50232. See #49542.

File:
1 edited

Legend:

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

    r47550 r47851  
    825825            case 'BETWEEN':
    826826            case 'NOT BETWEEN':
    827                 if ( ! is_array( $value ) || 2 != count( $value ) ) {
     827                if ( ! is_array( $value ) || 2 !== count( $value ) ) {
    828828                    $value = array( $value, $value );
    829829                } else {
Note: See TracChangeset for help on using the changeset viewer.