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:
ryan 2011-01-07 19:58:25 +00:00
parent 9b88439cb6
commit e7890765b7
1 changed files with 2 additions and 1 deletions

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