diff --git a/wp-admin/admin.php b/wp-admin/admin.php index 3e8a6e4938..8dadeb81a0 100644 --- a/wp-admin/admin.php +++ b/wp-admin/admin.php @@ -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);