WordPress.org

Make WordPress Core

Changeset 50694


Ignore:
Timestamp:
04/09/2021 11:47:46 AM (8 months ago)
Author:
SergeyBiryukov
Message:

Themes: Remove unused code fragment from wp-admin/themes.php.

Follow-up to [25666], [26141].

Props mukesh27, rkradadiya.
Fixes #53005.

File:
1 edited

Legend:

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

    r49969 r50694  
    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 */
    311 
    312     // Pretend you didn't see this.
    313     $current_theme_actions = array();
     306$current_theme_actions = array();
     307
    314308if ( is_array( $submenu ) && isset( $submenu['themes.php'] ) ) {
    315309    foreach ( (array) $submenu['themes.php'] as $item ) {
     
    355349}
    356350
    357 ?>
    358 
    359 <?php
    360351$class_name = 'theme-browser';
    361352if ( ! empty( $_GET['search'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.