mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
a7a9e7602c
commit
12e6142687
@ -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>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user