From 13da094c39e345c62210b7177cb3c31291589530 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 31 May 2019 14:14:52 +0000 Subject: [PATCH] Upgrade/Install: Correct operator precedence for an error code in `WP_Ajax_Upgrader_Skin::error()`. Props jrf. Fixes #47441. Built from https://develop.svn.wordpress.org/trunk@45487 git-svn-id: http://core.svn.wordpress.org/trunk@45298 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-ajax-upgrader-skin.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/class-wp-ajax-upgrader-skin.php b/wp-admin/includes/class-wp-ajax-upgrader-skin.php index 12afb44e25..dbcc40f0d0 100644 --- a/wp-admin/includes/class-wp-ajax-upgrader-skin.php +++ b/wp-admin/includes/class-wp-ajax-upgrader-skin.php @@ -95,9 +95,9 @@ class WP_Ajax_Upgrader_Skin extends Automatic_Upgrader_Skin { } } - // Count existing errors to generate an unique error code. + // Count existing errors to generate a unique error code. $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 ) ) { foreach ( $errors->get_error_codes() as $error_code ) { $this->errors->add( $error_code, $errors->get_error_message( $error_code ), $errors->get_error_data( $error_code ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 1fa33d3ead..909071a27e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-45486'; +$wp_version = '5.3-alpha-45487'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.