$this->query_vars = array
();
$post_type_query_vars = array
();
if ( is_array( $extra_query_vars ) ) { $this->extra_query_vars = &
$extra_query_vars;
} elseif ( !
empty( $extra_query_vars ) ) { parse_str( $extra_query_vars,
$this->extra_query_vars
);
} // Process PATH_INFO, REQUEST_URI, and 404 for permalinks.
// Fetch the rewrite rules.
$rewrite =
$wp_rewrite->
wp_rewrite_rules();
if ( !
empty( $rewrite ) ) { // If we match a rewrite rule, this will be cleared.
$error = '404';
$this->did_permalink = true;
$pathinfo =
isset( $_SERVER['PATH_INFO'
] ) ?
$_SERVER['PATH_INFO'
] : '';
list
( $pathinfo ) =
explode( '?',
$pathinfo );
$pathinfo =
str_replace( '%', '%25',
$pathinfo );
list
( $req_uri ) =
explode( '?',
$_SERVER['REQUEST_URI'
] );