has_action and has_filter. see #5231

git-svn-id: https://develop.svn.wordpress.org/trunk@6320 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-11-07 04:30:11 +00:00
parent 35f22f56cf
commit d5ed4b3d7d
4 changed files with 68 additions and 11 deletions

View File

@@ -238,8 +238,7 @@ class WP {
}
// query_string filter deprecated. Use request filter instead.
global $wp_filter;
if ( isset($wp_filter['query_string']) ) { // Don't bother filtering and parsing if no plugins are hooked in.
if ( has_filter('query_string') ) { // Don't bother filtering and parsing if no plugins are hooked in.
$this->query_string = apply_filters('query_string', $this->query_string);
parse_str($this->query_string, $this->query_vars);
}