From 2a7238f65884dd32f8b1af365a452eb3b543edaf Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 10 Apr 2021 12:01:10 +0000 Subject: [PATCH] Coding Standards: Give a variable in `wp-admin/themes.php` a more meaningful name. Follow-up to [20029]. See #52627. Built from https://develop.svn.wordpress.org/trunk@50696 git-svn-id: http://core.svn.wordpress.org/trunk@50305 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/themes.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-admin/themes.php b/wp-admin/themes.php index e6ad3f98bb..5b2bf96780 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -297,10 +297,10 @@ if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) { errors() && ( ! is_multisite() || current_user_can( 'manage_network_themes' ) ) ) { - echo '

' . __( 'Error:' ) . ' ' . $ct->errors()->get_error_message() . '

'; +if ( $current_theme->errors() && ( ! is_multisite() || current_user_can( 'manage_network_themes' ) ) ) { + echo '

' . __( 'Error:' ) . ' ' . $current_theme->errors()->get_error_message() . '

'; } $current_theme_actions = array(); diff --git a/wp-includes/version.php b/wp-includes/version.php index 58dc020da5..0f10439b04 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-50695'; +$wp_version = '5.8-alpha-50696'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.