Changeset 50696
- Timestamp:
- 04/10/2021 11:59:19 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/themes.php
r50694 r50696 298 298 } 299 299 300 $c t= wp_get_theme();301 302 if ( $c t->errors() && ( ! is_multisite() || current_user_can( 'manage_network_themes' ) ) ) {303 echo '<div class="error"><p>' . __( 'Error:' ) . ' ' . $c t->errors()->get_error_message() . '</p></div>';300 $current_theme = wp_get_theme(); 301 302 if ( $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>'; 304 304 } 305 305
Note: See TracChangeset
for help on using the changeset viewer.