mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Menu fixes. see #7552
git-svn-id: https://develop.svn.wordpress.org/trunk@8735 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -488,7 +488,7 @@ function get_admin_page_parent( $parent = '' ) {
|
||||
global $_wp_menu_nopriv;
|
||||
global $_wp_submenu_nopriv;
|
||||
|
||||
if ( !empty ( $parent ) ) {
|
||||
if ( !empty ( $parent ) && 'admin.php' != $parent ) {
|
||||
if ( isset( $_wp_real_parent_file[$parent] ) )
|
||||
$parent = $_wp_real_parent_file[$parent];
|
||||
return $parent;
|
||||
|
||||
Reference in New Issue
Block a user