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

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

Props mukesh27, rkradadiya.
Fixes #53005.
Built from https://develop.svn.wordpress.org/trunk@50694


git-svn-id: http://core.svn.wordpress.org/trunk@50303 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2021-04-09 11:49:05 +00:00
parent bdacea193a
commit 68b73d3696
2 changed files with 2 additions and 11 deletions

View File

@ -303,14 +303,8 @@ if ( $ct->errors() && ( ! is_multisite() || current_user_can( 'manage_network_th
echo '<div class="error"><p>' . __( 'Error:' ) . ' ' . $ct->errors()->get_error_message() . '</p></div>';
}
/*
// Certain error codes are less fatal than others. We can still display theme information in most cases.
if ( ! $ct->errors() || ( 1 === count( $ct->errors()->get_error_codes() )
&& in_array( $ct->errors()->get_error_code(), array( 'theme_no_parent', 'theme_parent_invalid', 'theme_no_index' ) ) ) ) : ?>
*/
$current_theme_actions = array();
// Pretend you didn't see this.
$current_theme_actions = array();
if ( is_array( $submenu ) && isset( $submenu['themes.php'] ) ) {
foreach ( (array) $submenu['themes.php'] as $item ) {
$class = '';
@ -354,9 +348,6 @@ if ( is_array( $submenu ) && isset( $submenu['themes.php'] ) ) {
}
}
?>
<?php
$class_name = 'theme-browser';
if ( ! empty( $_GET['search'] ) ) {
$class_name .= ' search-loading';

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.8-alpha-50693';
$wp_version = '5.8-alpha-50694';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.