Make WordPress Core

Ticket #16692: 16692.diff

File 16692.diff, 450 bytes (added by andy, 14 years ago)

Allow plugins to cancel core wp::parse_request()

  • wp-includes/class-wp.php

     
    120120        function parse_request($extra_query_vars = '') {
    121121                global $wp_rewrite;
    122122
     123                if ( ! apply_filters( 'do_parse_request', true, $this, $extra_query_vars ) )
     124                        return;
     125
    123126                $this->query_vars = array();
    124127                $post_type_query_vars = array();
    125128