WordPress.org

Make WordPress Core

Changeset 11017


Ignore:
Timestamp:
04/20/09 19:48:11 (6 years ago)
Author:
ryan
Message:

Use unlocalized hook name. Props hakre. fixes #9438

File:
1 edited

Legend:

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

    r10869 r11017  
    128128// Create list of page plugin hook names. 
    129129foreach ($menu as $menu_page) { 
    130     $admin_page_hooks[$menu_page[2]] = sanitize_title($menu_page[0]); 
     130    $admin_page_hooks[$menu_page[2]] = sanitize_title(basename($menu_page[2], '.php')); 
    131131} 
    132132 
Note: See TracChangeset for help on using the changeset viewer.