Allow top-level menu page to use a slug, rather than filename. Props DD32. fixes #7214
git-svn-id: http://svn.automattic.com/wordpress/trunk@9147 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4dc580ce15
commit
a2ccbf9a00
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue