mirror of
git://develop.git.wordpress.org/
synced 2025-02-24 08:33:35 +01:00
user_can_access_admin_page() fix. Props arena. see #8535
git-svn-id: https://develop.svn.wordpress.org/trunk@10267 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d02a3b83af
commit
58011e2257
@ -862,7 +862,7 @@ function user_can_access_admin_page() {
|
||||
|
||||
$parent = get_admin_page_parent();
|
||||
|
||||
if ( isset( $_wp_submenu_nopriv[$parent][$pagenow] ) )
|
||||
if ( !isset( $plugin_page ) && isset( $_wp_submenu_nopriv[$parent][$pagenow] ) )
|
||||
return false;
|
||||
|
||||
if ( isset( $plugin_page ) && isset( $_wp_submenu_nopriv[$parent][$plugin_page] ) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user