Make WordPress Core

Changeset 54654


Ignore:
Timestamp:
10/20/2022 02:28:25 PM (23 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp-admin/update-core.php.

This updates a conditional in do_core_upgrade() to use strict comparison for error codes that are static strings.

Follow-up to [8595], [36349].

Props rezakhan995, kebbet, mukesh27, jrf, SergeyBiryukov.
Fixes #56866.

File:
1 edited

Legend:

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

    r53840 r54654  
    891891    if ( is_wp_error( $result ) ) {
    892892        show_message( $result );
    893         if ( 'up_to_date' != $result->get_error_code() && 'locked' != $result->get_error_code() ) {
     893        if ( 'up_to_date' !== $result->get_error_code() && 'locked' !== $result->get_error_code() ) {
    894894            show_message( __( 'Installation failed.' ) );
    895895        }
Note: See TracChangeset for help on using the changeset viewer.