No need to re-register widgets. see #5750

git-svn-id: https://develop.svn.wordpress.org/trunk@6718 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-02-04 20:51:10 +00:00
parent dc8a36221f
commit 7512648b3d
1 changed files with 0 additions and 3 deletions

View File

@ -85,9 +85,6 @@ if ( $http_post && isset($sidebars_widgets[$_POST['sidebar']]) ) {
$sidebars_widgets[$_POST['sidebar']] = $new_sidebar; $sidebars_widgets[$_POST['sidebar']] = $new_sidebar;
wp_set_sidebars_widgets( $sidebars_widgets ); wp_set_sidebars_widgets( $sidebars_widgets );
// Re-register just in case
wp_widgets_init();
wp_redirect( add_query_arg( 'message', 'updated' ) ); wp_redirect( add_query_arg( 'message', 'updated' ) );
exit; exit;
} }