Permalink
Browse files

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
  • Loading branch information...
1 parent d3be356 commit b1bc48c4d33cb41b943122608bdb796aea7a061f ryan committed Jan 22, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 wp-admin/includes/plugin.php
@@ -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] ) )

0 comments on commit b1bc48c

Please sign in to comment.