More menu fixes

git-svn-id: http://svn.automattic.com/wordpress/trunk@11592 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-06-17 19:50:38 +00:00
parent 5d044d03aa
commit 71f507ac47
1 changed files with 2 additions and 0 deletions

View File

@ -935,6 +935,8 @@ function user_can_access_admin_page() {
return false; return false;
if ( isset( $plugin_page ) && isset( $_wp_submenu_nopriv[$pagenow][$plugin_page] ) ) if ( isset( $plugin_page ) && isset( $_wp_submenu_nopriv[$pagenow][$plugin_page] ) )
return false; return false;
if ( isset( $plugin_page ) && isset( $_wp_menu_nopriv[$plugin_page] ) )
return false;
foreach (array_keys( $_wp_submenu_nopriv ) as $key ) { foreach (array_keys( $_wp_submenu_nopriv ) as $key ) {
if ( isset( $_wp_submenu_nopriv[$key][$pagenow] ) ) if ( isset( $_wp_submenu_nopriv[$key][$pagenow] ) )
return false; return false;