mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 00:01:27 +01:00
Fix post theme delete redirect. Props greuben. see #16117
git-svn-id: http://svn.automattic.com/wordpress/trunk@17238 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9b88439cb6
commit
e7890765b7
@ -161,7 +161,8 @@ if ( $action ) {
|
||||
|
||||
foreach ( $themes as $theme )
|
||||
$delete_result = delete_theme( $theme, esc_url( add_query_arg( array('verify-delete' => 1), $_SERVER['REQUEST_URI'] ) ) );
|
||||
wp_redirect( add_query_arg( 'deleted', count( $themes ), $referer ) );
|
||||
$paged = ( $_REQUEST['paged'] ) ? $_REQUEST['paged'] : 1;
|
||||
wp_redirect( network_admin_url( "themes.php?deleted=".count( $themes )."&paged=$paged&s=$s" ) );
|
||||
exit;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user