WordPress.org

Make WordPress Core

Ticket #18857: 18857.diff

File 18857.diff, 489 bytes (added by scribu, 15 months ago)

corrrect format of plugin.diff

  • wp-admin/includes/plugin.php

    diff --git wp-admin/includes/plugin.php wp-admin/includes/plugin.php
    index 109e66d..7c3a630 100644
    function add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $func 
    895895 
    896896        $menu_slug = plugin_basename( $menu_slug ); 
    897897 
    898         $admin_page_hooks[$menu_slug] = sanitize_title( $menu_title ); 
     898        $admin_page_hooks[$menu_slug] = $menu_slug; 
    899899 
    900900        $hookname = get_plugin_page_hookname( $menu_slug, '' ); 
    901901