Make WordPress Core


Ignore:
Timestamp:
11/07/2007 04:30:11 AM (16 years ago)
Author:
ryan
Message:

has_action and has_filter. see #5231

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin.php

    r6259 r6320  
    330330
    331331function get_plugin_page_hook( $plugin_page, $parent_page ) {
    332     global $wp_filter;
    333 
    334332    $hook = get_plugin_page_hookname( $plugin_page, $parent_page );
    335     if ( isset( $wp_filter[$hook] ))
     333    if ( has_action($hook) )
    336334        return $hook;
    337335    else
Note: See TracChangeset for help on using the changeset viewer.