WordPress.org

Make WordPress Core


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

has_action and has_filter. see #5231

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/classes.php

    r6303 r6320  
    239239
    240240        // query_string filter deprecated.  Use request filter instead.
    241         global $wp_filter;
    242         if ( isset($wp_filter['query_string']) ) {  // Don't bother filtering and parsing if no plugins are hooked in.
     241        if ( has_filter('query_string') ) {  // Don't bother filtering and parsing if no plugins are hooked in.
    243242            $this->query_string = apply_filters('query_string', $this->query_string);
    244243            parse_str($this->query_string, $this->query_vars);
Note: See TracChangeset for help on using the changeset viewer.