Fix undefined offset warnings on pages the current user does not have perms for. Props wpdavis. fixes #15469
git-svn-id: https://develop.svn.wordpress.org/trunk@16471 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
98362127ad
commit
14d7d29453
@ -205,11 +205,11 @@ if ( apply_filters('custom_menu_order', false) ) {
|
|||||||
unset($menu_order, $default_menu_order);
|
unset($menu_order, $default_menu_order);
|
||||||
}
|
}
|
||||||
|
|
||||||
$menu = add_menu_classes($menu);
|
|
||||||
|
|
||||||
if ( !user_can_access_admin_page() ) {
|
if ( !user_can_access_admin_page() ) {
|
||||||
do_action('admin_page_access_denied');
|
do_action('admin_page_access_denied');
|
||||||
wp_die( __('You do not have sufficient permissions to access this page.') );
|
wp_die( __('You do not have sufficient permissions to access this page.') );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$menu = add_menu_classes($menu);
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
x
Reference in New Issue
Block a user