Fix missing titles for plugins without submenus. Props clwill. fixes #9146
git-svn-id: https://develop.svn.wordpress.org/trunk@10966 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b47e7b03fd
commit
3cee48146f
@ -862,6 +862,18 @@ function get_admin_page_title() {
|
||||
}
|
||||
}
|
||||
}
|
||||
if ( !isset($title) || empty ( $title ) ) {
|
||||
foreach ( $menu as $menu_array ) {
|
||||
if ( isset( $plugin_page ) &&
|
||||
($plugin_page == $menu_array[2] ) &&
|
||||
($pagenow == 'admin.php' ) &&
|
||||
($parent1 == $menu_array[2] ) )
|
||||
{
|
||||
$title = $menu_array[3];
|
||||
return $menu_array[3];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $title;
|
||||
|
Loading…
Reference in New Issue
Block a user