mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-14 14:45:45 +01:00
user_can_access_admin_page() fix. Props arena. fixes #8535 for 2.7
git-svn-id: http://svn.automattic.com/wordpress/branches/2.7@10413 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d3be3569b9
commit
b1bc48c4d3
@ -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…
Reference in New Issue
Block a user