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
This commit is contained in:
Sergey Biryukov
2021-04-10 11:59:19 +00:00
parent a7d053801d
commit b394d5a7cf

View File

@@ -297,10 +297,10 @@ if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) {
<?php
}
$ct = wp_get_theme();
$current_theme = wp_get_theme();
if ( $ct->errors() && ( ! is_multisite() || current_user_can( 'manage_network_themes' ) ) ) {
echo '<div class="error"><p>' . __( 'Error:' ) . ' ' . $ct->errors()->get_error_message() . '</p></div>';
if ( $current_theme->errors() && ( ! is_multisite() || current_user_can( 'manage_network_themes' ) ) ) {
echo '<div class="error"><p>' . __( 'Error:' ) . ' ' . $current_theme->errors()->get_error_message() . '</p></div>';
}
$current_theme_actions = array();