Allow top-level menu page to use a slug, rather than filename. Props DD32. fixes #7214

git-svn-id: https://develop.svn.wordpress.org/trunk@9147 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-10-14 00:28:53 +00:00
parent 2f130a2535
commit cc50e8f056

View File

@ -57,7 +57,8 @@ do_action('admin_init');
// Handle plugin admin pages.
if (isset($plugin_page)) {
$page_hook = get_plugin_page_hook($plugin_page, $pagenow);
if( ! $page_hook = get_plugin_page_hook($plugin_page, $pagenow) )
$page_hook = get_plugin_page_hook($plugin_page, $plugin_page);
if ( $page_hook ) {
do_action('load-' . $page_hook);