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

git-svn-id: https://develop.svn.wordpress.org/trunk@21163 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-06-28 20:03:03 +00:00
parent 7232568783
commit 6727ee1a21
1 changed files with 3 additions and 0 deletions

View File

@ -120,6 +120,9 @@ class WP {
function parse_request($extra_query_vars = '') {
global $wp_rewrite;
if ( ! apply_filters( 'do_parse_request', true, $this, $extra_query_vars ) )
return;
$this->query_vars = array();
$post_type_query_vars = array();