mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 18:24:31 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user