Ticket #53005: 53005.patch
File 53005.patch, 909 bytes (added by , 4 years ago) |
---|
-
wp-admin/themes.php
303 303 echo '<div class="error"><p>' . __( 'Error:' ) . ' ' . $ct->errors()->get_error_message() . '</p></div>'; 304 304 } 305 305 306 /* 307 // Certain error codes are less fatal than others. We can still display theme information in most cases. 308 if ( ! $ct->errors() || ( 1 === count( $ct->errors()->get_error_codes() ) 309 && in_array( $ct->errors()->get_error_code(), array( 'theme_no_parent', 'theme_parent_invalid', 'theme_no_index' ) ) ) ) : ?> 310 */ 306 // Pretend you didn't see this. 307 $current_theme_actions = array(); 311 308 312 // Pretend you didn't see this.313 $current_theme_actions = array();314 309 if ( is_array( $submenu ) && isset( $submenu['themes.php'] ) ) { 315 310 foreach ( (array) $submenu['themes.php'] as $item ) { 316 311 $class = '';