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:
ryan 2009-01-22 22:34:56 +00:00
parent d3be3569b9
commit b1bc48c4d3

View File

@ -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] ) )