mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Notice fixes from jacobsantos. fixes #7255
git-svn-id: https://develop.svn.wordpress.org/trunk@8266 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -470,18 +470,16 @@ function get_plugin_page_hookname( $plugin_page, $parent_page ) {
|
||||
|
||||
$parent = get_admin_page_parent();
|
||||
|
||||
$page_type = 'admin';
|
||||
if ( empty ( $parent_page ) || 'admin.php' == $parent_page ) {
|
||||
if ( isset( $admin_page_hooks[$plugin_page] ))
|
||||
$page_type = 'toplevel';
|
||||
else
|
||||
if ( isset( $admin_page_hooks[$parent] ))
|
||||
$page_type = $admin_page_hooks[$parent];
|
||||
} else
|
||||
if ( isset( $admin_page_hooks[$parent_page] ) ) {
|
||||
$page_type = $admin_page_hooks[$parent_page];
|
||||
} else {
|
||||
$page_type = 'admin';
|
||||
}
|
||||
} else if ( isset( $admin_page_hooks[$parent_page] ) ) {
|
||||
$page_type = $admin_page_hooks[$parent_page];
|
||||
}
|
||||
|
||||
$plugin_name = preg_replace( '!\.php!', '', $plugin_page );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user