Make WordPress Core


Ignore:
Timestamp:
05/23/2020 11:36:36 AM (5 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-admin/update-core.php

    r47835 r47848  
    4747    } elseif ( 'en_US' === $update->locale && $update->packages->partial && $wp_version == $update->partial_version ) {
    4848        $updates = get_core_updates();
    49         if ( $updates && 1 == count( $updates ) ) {
     49        if ( $updates && 1 === count( $updates ) ) {
    5050            // If the only available update is a partial builds, it doesn't need a language-specific version string.
    5151            $version_string = $update->current;
Note: See TracChangeset for help on using the changeset viewer.