Hopeful menu parenting fix
git-svn-id: http://svn.automattic.com/wordpress/trunk@8991 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
121f0754c6
commit
677f7ca342
|
@ -594,13 +594,14 @@ function get_admin_page_parent( $parent = '' ) {
|
|||
$parent = $_wp_real_parent_file[$parent];
|
||||
return $parent;
|
||||
}
|
||||
|
||||
/*
|
||||
if ( !empty ( $parent_file ) ) {
|
||||
if ( isset( $_wp_real_parent_file[$parent_file] ) )
|
||||
$parent_file = $_wp_real_parent_file[$parent_file];
|
||||
|
||||
return $parent_file;
|
||||
}
|
||||
*/
|
||||
|
||||
if ( $pagenow == 'admin.php' && isset( $plugin_page ) ) {
|
||||
foreach ( $menu as $parent_menu ) {
|
||||
|
|
Loading…
Reference in New Issue