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. Built from https://develop.svn.wordpress.org/trunk@54654 git-svn-id: http://core.svn.wordpress.org/trunk@54206 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
12d9878827
commit
7490127885
|
@ -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>';
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.2-alpha-54652';
|
||||
$wp_version = '6.2-alpha-54654';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue