WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/23/2020 11:36:36 AM (11 months ago)
Author:
SergeyBiryukov
Message:

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

See #49542.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/themes.php

    r47835 r47848  
    286286/*
    287287// Certain error codes are less fatal than others. We can still display theme information in most cases.
    288 if ( ! $ct->errors() || ( 1 == count( $ct->errors()->get_error_codes() )
     288if ( ! $ct->errors() || ( 1 === count( $ct->errors()->get_error_codes() )
    289289    && in_array( $ct->errors()->get_error_code(), array( 'theme_no_parent', 'theme_parent_invalid', 'theme_no_index' ) ) ) ) : ?>
    290290*/
Note: See TracChangeset for help on using the changeset viewer.