mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-23 23:04:25 +00:00
Remove redundant isset() and empty() checks.
git-svn-id: https://develop.svn.wordpress.org/trunk@13770 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1243,9 +1243,8 @@ function get_admin_page_title() {
|
||||
global $pagenow;
|
||||
global $plugin_page;
|
||||
|
||||
if ( isset( $title ) && !empty ( $title ) ) {
|
||||
if ( ! empty ( $title ) )
|
||||
return $title;
|
||||
}
|
||||
|
||||
$hook = get_plugin_page_hook( $plugin_page, $pagenow );
|
||||
|
||||
@@ -1290,7 +1289,7 @@ function get_admin_page_title() {
|
||||
}
|
||||
}
|
||||
}
|
||||
if ( !isset($title) || empty ( $title ) ) {
|
||||
if ( empty ( $title ) ) {
|
||||
foreach ( $menu as $menu_array ) {
|
||||
if ( isset( $plugin_page ) &&
|
||||
($plugin_page == $menu_array[2] ) &&
|
||||
|
||||
Reference in New Issue
Block a user