Make WordPress Core

Ticket #16692: wp_parse_request_hook-v3.diff

File wp_parse_request_hook-v3.diff, 499 bytes (added by mikeschinkel, 14 years ago)

Changed from an action to a filter.

  • wp-includes/class-wp.php

     
    496496         */
    497497        function main($query_args = '') {
    498498                $this->init();
    499                 $this->parse_request($query_args);
     499                if ( !apply_filters( 'wp_parse_request', false, $this, $query_args ) )
     500                         $this->parse_request( $query_args );
    500501                $this->send_headers();
    501502                $this->query_posts();
    502503                $this->handle_404();