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:
parent
9f643af85d
commit
b897b88430
|
@ -85,9 +85,6 @@ if ( $http_post && isset($sidebars_widgets[$_POST['sidebar']]) ) {
|
|||
$sidebars_widgets[$_POST['sidebar']] = $new_sidebar;
|
||||
wp_set_sidebars_widgets( $sidebars_widgets );
|
||||
|
||||
// Re-register just in case
|
||||
wp_widgets_init();
|
||||
|
||||
wp_redirect( add_query_arg( 'message', 'updated' ) );
|
||||
exit;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue