Call wp_menu_unfold() after user settings have been synchronized

git-svn-id: https://develop.svn.wordpress.org/trunk@11135 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2009-04-30 07:17:05 +00:00
parent b1c90ff067
commit 0328cb8a2b
2 changed files with 2 additions and 2 deletions

View File

@@ -363,9 +363,8 @@ function set_screen_options() {
}
}
add_action( 'admin_init', 'wp_menu_unfold' );
function wp_menu_unfold() {
if ( isset($_GET['unfoldmenu']) && $user = get_current_user() ) {
if ( isset($_GET['unfoldmenu']) ) {
delete_user_setting('mfold');
wp_redirect( remove_query_arg( 'unfoldmenu', stripslashes($_SERVER['REQUEST_URI']) ) );
exit;