mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-08 22:54:36 +00: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:
@@ -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] ) )
|
||||
|
||||
Reference in New Issue
Block a user