Load the menu folded (if set), load the editor earlier

git-svn-id: https://develop.svn.wordpress.org/trunk@11118 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2009-04-29 05:43:03 +00:00
parent 61f7821b34
commit 4a911beaf3
8 changed files with 53 additions and 27 deletions
+9
View File
@@ -362,3 +362,12 @@ function set_screen_options() {
exit;
}
}
add_action( 'admin_init', 'wp_menu_unfold' );
function wp_menu_unfold() {
if ( isset($_GET['unfoldmenu']) && $user = get_current_user() ) {
delete_user_setting('mfold');
wp_redirect( remove_query_arg( 'unfoldmenu', stripslashes($_SERVER['REQUEST_URI']) ) );
exit;
}
}