Don't let the query string pile up on successive themes.php searches.
props SergeyBiryukov. fixes #25270. Built from https://develop.svn.wordpress.org/trunk@25679 git-svn-id: http://core.svn.wordpress.org/trunk@25595 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4c63d45139
commit
6a675a8c9b
|
@ -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