WordPress.org

Make WordPress Core

Ticket #53005: 53005.patch

File 53005.patch, 909 bytes (added by mukesh27, 8 months ago)

Initial patch

  • wp-admin/themes.php

     
    303303        echo '<div class="error"><p>' . __( 'Error:' ) . ' ' . $ct->errors()->get_error_message() . '</p></div>';
    304304}
    305305
    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();
    311308
    312         // Pretend you didn't see this.
    313         $current_theme_actions = array();
    314309if ( is_array( $submenu ) && isset( $submenu['themes.php'] ) ) {
    315310        foreach ( (array) $submenu['themes.php'] as $item ) {
    316311                $class = '';