Skip to content

Commit

Permalink
Coding Standards: Give a variable in wp-admin/themes.php a more mea…
Browse files Browse the repository at this point in the history
…ningful name.

Follow-up to [20029].

See #52627.

git-svn-id: https://develop.svn.wordpress.org/trunk@50696 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Apr 10, 2021
1 parent a7d0538 commit b394d5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wp-admin/themes.php
Expand Up @@ -297,10 +297,10 @@
<?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();
Expand Down

0 comments on commit b394d5a

Please sign in to comment.