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:
parent
dc8a36221f
commit
7512648b3d
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue