Make WordPress Core


Ignore:
Timestamp:
02/09/2020 04:52:28 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use Yoda conditions where appropriate.

See #49222.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-core-upgrader.php

    r47198 r47219  
    7979
    8080        // Is an update available?
    81         if ( ! isset( $current->response ) || $current->response == 'latest' ) {
     81        if ( ! isset( $current->response ) || 'latest' === $current->response ) {
    8282            return new WP_Error( 'up_to_date', $this->strings['up_to_date'] );
    8383        }
Note: See TracChangeset for help on using the changeset viewer.