mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-08 08:31:48 +01:00
Fix missing titles for plugins without submenus. Props clwill. fixes #9146
git-svn-id: http://svn.automattic.com/wordpress/trunk@10966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2a35127359
commit
b50c964869
@ -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