WordPress.org

Make WordPress Core

Changeset 21163


Ignore:
Timestamp:
06/28/12 20:03:03 (22 months ago)
Author:
nacin
Message:

Add do_parse_request filter to WP::parse_request() to allow short-circuiting. props andy, mikeschinkel. fixes #16692.

File:
1 edited

Legend:

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

    r19935 r21163  
    120120    function parse_request($extra_query_vars = '') { 
    121121        global $wp_rewrite; 
     122 
     123        if ( ! apply_filters( 'do_parse_request', true, $this, $extra_query_vars ) ) 
     124            return; 
    122125 
    123126        $this->query_vars = array(); 
Note: See TracChangeset for help on using the changeset viewer.