From 3cee48146f9a59bbe2f8691a4ced2abbebc0458a Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 16 Apr 2009 23:42:42 +0000 Subject: [PATCH] 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 --- wp-admin/includes/plugin.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/wp-admin/includes/plugin.php b/wp-admin/includes/plugin.php index d5950b12fb..4fdefc8d24 100644 --- a/wp-admin/includes/plugin.php +++ b/wp-admin/includes/plugin.php @@ -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;