Explain the empty req_uri branch. Props duck_. fixes #17177
git-svn-id: http://svn.automattic.com/wordpress/trunk@18467 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b1842a700c
commit
3000ee7664
|
@ -186,6 +186,7 @@ class WP {
|
||||||
// Look for matches.
|
// Look for matches.
|
||||||
$request_match = $request;
|
$request_match = $request;
|
||||||
if ( empty( $req_uri ) ) {
|
if ( empty( $req_uri ) ) {
|
||||||
|
// An empty request could only match against ^$ regex
|
||||||
if ( isset( $rewrite['$'] ) ) {
|
if ( isset( $rewrite['$'] ) ) {
|
||||||
$this->matched_rule = '$';
|
$this->matched_rule = '$';
|
||||||
$query = $rewrite['$'];
|
$query = $rewrite['$'];
|
||||||
|
|
Loading…
Reference in New Issue