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:
parent
a2c2641419
commit
8cd52fe580
@ -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']);
|
||||
|
Loading…
Reference in New Issue
Block a user