Menu back-compat fixes. see #7552

git-svn-id: https://develop.svn.wordpress.org/trunk@8708 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-08-22 04:32:42 +00:00
parent 3100396f7c
commit 8da367ce9e
2 changed files with 7 additions and 2 deletions

View File

@@ -616,8 +616,8 @@ function get_plugin_page_hookname( $plugin_page, $parent_page ) {
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 if ( isset( $admin_page_hooks[$parent] ) ) {
$page_type = $admin_page_hooks[$parent];
}
$plugin_name = preg_replace( '!\.php!', '', $plugin_page );