From b394d5a7cfcc9d77b104123b3908ec481000987c Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 10 Apr 2021 11:59:19 +0000 Subject: [PATCH] Coding Standards: Give a variable in `wp-admin/themes.php` a more meaningful name. Follow-up to [20029]. See #52627. git-svn-id: https://develop.svn.wordpress.org/trunk@50696 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/themes.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/themes.php b/src/wp-admin/themes.php index e6ad3f98bb..5b2bf96780 100644 --- a/src/wp-admin/themes.php +++ b/src/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();