No need to re-register widgets. see #5750

git-svn-id: http://svn.automattic.com/wordpress/trunk@6718 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-02-04 20:51:10 +00:00
parent 9f643af85d
commit b897b88430
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;
} }