diff --git a/wp-admin/includes/plugin.php b/wp-admin/includes/plugin.php index 53dae0514e..0210c5efea 100644 --- a/wp-admin/includes/plugin.php +++ b/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] ) )