mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Menu fixes
git-svn-id: https://develop.svn.wordpress.org/trunk@11565 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -944,6 +944,9 @@ function user_can_access_admin_page() {
|
||||
return true;
|
||||
}
|
||||
|
||||
if ( isset( $plugin_page ) && ( $plugin_page == $parent ) && isset( $_wp_menu_nopriv[$plugin_page] ) )
|
||||
return false;
|
||||
|
||||
if ( isset( $submenu[$parent] ) ) {
|
||||
foreach ( $submenu[$parent] as $submenu_array ) {
|
||||
if ( isset( $plugin_page ) && ( $submenu_array[2] == $plugin_page ) ) {
|
||||
|
||||
Reference in New Issue
Block a user