WordPress.org

Make WordPress Core

Ticket #4639: 4639.get_plugin_page_hook.diff

File 4639.get_plugin_page_hook.diff, 466 bytes (added by DD32, 11 years ago)

get_plugin_page_hook fix as diff instead

  • wp-admin/includes/plugin.php

     
    291291        if ( isset( $wp_filter[$hook] )) 
    292292                return $hook; 
    293293        else 
    294                 return ''; 
     294                return null; 
    295295} 
    296296 
    297297function get_plugin_page_hookname( $plugin_page, $parent_page ) { 
     
    377377        return true; 
    378378} 
    379379 
    380 ?> 
    381  No newline at end of file 
     380?>