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.

git-svn-id: https://develop.svn.wordpress.org/trunk@54654 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2022-10-20 14:28:25 +00:00
parent a7a9e7602c
commit 12e6142687

View File

@ -890,7 +890,7 @@ function do_core_upgrade( $reinstall = false ) {
if ( is_wp_error( $result ) ) {
show_message( $result );
if ( 'up_to_date' != $result->get_error_code() && 'locked' != $result->get_error_code() ) {
if ( 'up_to_date' !== $result->get_error_code() && 'locked' !== $result->get_error_code() ) {
show_message( __( 'Installation failed.' ) );
}
echo '</div>';