WordPress.org

Make WordPress Core

Changeset 9147


Ignore:
Timestamp:
10/14/08 00:28:53 (6 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin.php

    r9101 r9147  
    5858// Handle plugin admin pages. 
    5959if (isset($plugin_page)) { 
    60     $page_hook = get_plugin_page_hook($plugin_page, $pagenow); 
     60    if( ! $page_hook = get_plugin_page_hook($plugin_page, $pagenow) ) 
     61        $page_hook = get_plugin_page_hook($plugin_page, $plugin_page); 
    6162 
    6263    if ( $page_hook ) { 
Note: See TracChangeset for help on using the changeset viewer.