Make WordPress Core


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

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

See #49542.

File:
1 edited

Legend:

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

    r47808 r47848  
    10731073        if ( ! isset( $custom[ $key ] ) ) {
    10741074                return false;
    1075         } elseif ( 1 == count( $custom[ $key ] ) ) {
     1075        } elseif ( 1 === count( $custom[ $key ] ) ) {
    10761076                return $custom[ $key ][0];
    10771077        } else {
Note: See TracChangeset for help on using the changeset viewer.