[wp-hackers] Is this a bug? (rewrite rules)
Otto
otto at ottodestruct.com
Mon Sep 8 14:12:57 GMT 2008
Down in rewrite.php, this code generates the rewrite rules for /page/XX:
$pageregex = 'page/?([0-9]{1,})/?$';
...
$pagematch = $match . $pageregex;
$pagequery = $index . '?' . $query . '&paged=' .
$this->preg_index($num_toks + 1);
Later, this code generates it for <permalink>/XX
//allow URLs like <permalink>/2 for <permalink>/page/2
$match = $match . '(/[0-9]+)?/?$';
$query = $index . '?' . $query . '&page=' . $this->preg_index($num_toks + 1);
Is there any reason why the first one uses "paged" while the second
one uses "page"?
-Otto
More information about the wp-hackers
mailing list