Don't let the query string pile up on successive themes.php searches.

props SergeyBiryukov.
fixes #25270.


git-svn-id: https://develop.svn.wordpress.org/trunk@25679 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-10-03 01:25:24 +00:00
parent a2c2641419
commit 8cd52fe580
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,8 @@ if ( !current_user_can('switch_themes') && !current_user_can('edit_theme_options
$wp_list_table = _get_list_table('WP_Themes_List_Table');
$_SERVER['REQUEST_URI'] = remove_query_arg( array( 's', 'features', '_ajax_fetch_list_nonce', '_wp_http_referer', 'paged' ), $_SERVER['REQUEST_URI'] );
if ( current_user_can( 'switch_themes' ) && isset($_GET['action'] ) ) {
if ( 'activate' == $_GET['action'] ) {
check_admin_referer('switch-theme_' . $_GET['stylesheet']);