Make WordPress Core

Changeset 50696


Ignore:
Timestamp:
04/10/2021 11:59:19 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Give a variable in wp-admin/themes.php a more meaningful name.

Follow-up to [20029].

See #52627.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/themes.php

    r50694 r50696  
    298298}
    299299
    300 $ct = wp_get_theme();
    301 
    302 if ( $ct->errors() && ( ! is_multisite() || current_user_can( 'manage_network_themes' ) ) ) {
    303     echo '<div class="error"><p>' . __( 'Error:' ) . ' ' . $ct->errors()->get_error_message() . '</p></div>';
     300$current_theme = wp_get_theme();
     301
     302if ( $current_theme->errors() && ( ! is_multisite() || current_user_can( 'manage_network_themes' ) ) ) {
     303    echo '<div class="error"><p>' . __( 'Error:' ) . ' ' . $current_theme->errors()->get_error_message() . '</p></div>';
    304304}
    305305
Note: See TracChangeset for help on using the changeset viewer.