Fix post theme delete redirect. Props greuben. see #16117

git-svn-id: https://develop.svn.wordpress.org/trunk@17238 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2011-01-07 19:58:25 +00:00
parent 5cd255f193
commit d1575abd76

View File

@ -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;
}