From 234c2b52ccf584cb93dce0eaf17431310b1d7458 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 9 Apr 2021 11:47:46 +0000 Subject: [PATCH] Themes: Remove unused code fragment from `wp-admin/themes.php`. Follow-up to [25666], [26141]. Props mukesh27, rkradadiya. Fixes #53005. git-svn-id: https://develop.svn.wordpress.org/trunk@50694 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/themes.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/wp-admin/themes.php b/src/wp-admin/themes.php index cb205e19df..e6ad3f98bb 100644 --- a/src/wp-admin/themes.php +++ b/src/wp-admin/themes.php @@ -303,14 +303,8 @@ if ( $ct->errors() && ( ! is_multisite() || current_user_can( 'manage_network_th echo '

' . __( 'Error:' ) . ' ' . $ct->errors()->get_error_message() . '

'; } -/* -// 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'] ) ) { } } -?> - -