Ticket #5231: 5231.diff

File 5231.diff, 919 bytes (added by mdawaffe, 5 years ago)
  • wp-admin/includes/plugin.php

     
    329329} 
    330330 
    331331function get_plugin_page_hook( $plugin_page, $parent_page ) { 
    332         global $wp_filter; 
     332        global $wp_action; 
    333333 
    334334        $hook = get_plugin_page_hookname( $plugin_page, $parent_page ); 
    335         if ( isset( $wp_filter[$hook] )) 
     335        if ( isset( $wp_action[$hook] )) 
    336336                return $hook; 
    337337        else 
    338338                return null; 
  • wp-settings.php

     
    2020 
    2121wp_unregister_GLOBALS(); 
    2222 
    23 unset( $wp_filter, $cache_lastcommentmodified, $cache_lastpostdate ); 
     23unset( $wp_filter, $wp_action, $cache_lastcommentmodified, $cache_lastpostdate ); 
    2424 
    2525if ( ! isset($blog_id) ) 
    2626        $blog_id = 1;