diff options
Diffstat (limited to 'wp-admin/includes/class-wp-theme-install-list-table.php')
-rw-r--r-- | wp-admin/includes/class-wp-theme-install-list-table.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wp-admin/includes/class-wp-theme-install-list-table.php b/wp-admin/includes/class-wp-theme-install-list-table.php index 945fb6e..e273d4b 100644 --- a/wp-admin/includes/class-wp-theme-install-list-table.php +++ b/wp-admin/includes/class-wp-theme-install-list-table.php @@ -36,7 +36,8 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table { require ABSPATH . 'wp-admin/includes/theme-install.php'; global $tabs, $tab, $paged, $type, $theme_field_defaults; - wp_reset_vars( array( 'tab' ) ); + + $tab = ! empty( $_REQUEST['tab'] ) ? sanitize_text_field( $_REQUEST['tab'] ) : ''; $search_terms = array(); $search_string = ''; |