WordPress.org

Make WordPress Core

Ticket #13266: admin-page-hooks.diff

File admin-page-hooks.diff, 396 bytes (added by uglyrobot, 5 years ago)

This should pull from the slug rather than translated title

  • plugin.php

     
    814814 
    815815        $menu_slug = plugin_basename( $menu_slug ); 
    816816 
    817         $admin_page_hooks[$menu_slug] = sanitize_title( $menu_title ); 
     817        $admin_page_hooks[$menu_slug] = $menu_slug; 
    818818 
    819819        $hookname = get_plugin_page_hookname( $menu_slug, '' ); 
    820820