mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 06:57:35 +01:00
Add do_parse_request filter to WP::parse_request() to allow short-circuiting. props andy, mikeschinkel. fixes #16692.
git-svn-id: http://core.svn.wordpress.org/trunk@21163 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
868ce1dfdd
commit
bdf490a7c6
@ -120,6 +120,9 @@ class WP {
|
|||||||
function parse_request($extra_query_vars = '') {
|
function parse_request($extra_query_vars = '') {
|
||||||
global $wp_rewrite;
|
global $wp_rewrite;
|
||||||
|
|
||||||
|
if ( ! apply_filters( 'do_parse_request', true, $this, $extra_query_vars ) )
|
||||||
|
return;
|
||||||
|
|
||||||
$this->query_vars = array();
|
$this->query_vars = array();
|
||||||
$post_type_query_vars = array();
|
$post_type_query_vars = array();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user