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:
parent
b1c90ff067
commit
0328cb8a2b
@ -12,6 +12,7 @@ if (!isset($_GET["page"])) require_once('admin.php');
|
|||||||
get_admin_page_title();
|
get_admin_page_title();
|
||||||
$title = wp_specialchars( strip_tags( $title ) );
|
$title = wp_specialchars( strip_tags( $title ) );
|
||||||
wp_user_settings();
|
wp_user_settings();
|
||||||
|
wp_menu_unfold();
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes();
|
<html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes();
|
||||||
|
@ -363,9 +363,8 @@ function set_screen_options() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
add_action( 'admin_init', 'wp_menu_unfold' );
|
|
||||||
function wp_menu_unfold() {
|
function wp_menu_unfold() {
|
||||||
if ( isset($_GET['unfoldmenu']) && $user = get_current_user() ) {
|
if ( isset($_GET['unfoldmenu']) ) {
|
||||||
delete_user_setting('mfold');
|
delete_user_setting('mfold');
|
||||||
wp_redirect( remove_query_arg( 'unfoldmenu', stripslashes($_SERVER['REQUEST_URI']) ) );
|
wp_redirect( remove_query_arg( 'unfoldmenu', stripslashes($_SERVER['REQUEST_URI']) ) );
|
||||||
exit;
|
exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user