mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-16 07:35:39 +01:00
Upgrade/Install: In WP_Ajax_Upgrader_Skin
, call ::get_error_codes()
method on a WP_Error
object $this->errors
instead of a string variable $errors
.
Props yrpwayne. Fixes #41449. Built from https://develop.svn.wordpress.org/trunk@41157 git-svn-id: http://core.svn.wordpress.org/trunk@40997 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7d2b400876
commit
c7feb8387a
@ -99,7 +99,7 @@ class WP_Ajax_Upgrader_Skin extends Automatic_Upgrader_Skin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Count existing errors to generate an unique error code.
|
// Count existing errors to generate an unique error code.
|
||||||
$errors_count = count( $errors->get_error_codes() );
|
$errors_count = count( $this->errors->get_error_codes() );
|
||||||
$this->errors->add( 'unknown_upgrade_error_' . $errors_count + 1 , $string );
|
$this->errors->add( 'unknown_upgrade_error_' . $errors_count + 1 , $string );
|
||||||
} elseif ( is_wp_error( $errors ) ) {
|
} elseif ( is_wp_error( $errors ) ) {
|
||||||
foreach ( $errors->get_error_codes() as $error_code ) {
|
foreach ( $errors->get_error_codes() as $error_code ) {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9-alpha-41156';
|
$wp_version = '4.9-alpha-41157';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user