Handle pathinfo structures when determining if verbose page rules should be used. Props dlo. fixes #6650 #6570 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7665 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6e662d708b
commit
1a41abe289
|
@ -993,6 +993,8 @@ class WP_Rewrite {
|
||||||
|
|
||||||
// Enable generic rules for pages if permalink structure doesn't begin with a wildcard.
|
// Enable generic rules for pages if permalink structure doesn't begin with a wildcard.
|
||||||
$structure = ltrim($this->permalink_structure, '/');
|
$structure = ltrim($this->permalink_structure, '/');
|
||||||
|
if ( $this->using_index_permalinks() )
|
||||||
|
$structure = ltrim($this->permalink_structure, $this->index . '/');
|
||||||
if ( 0 === strpos($structure, '%postname%') ||
|
if ( 0 === strpos($structure, '%postname%') ||
|
||||||
0 === strpos($structure, '%category%') ||
|
0 === strpos($structure, '%category%') ||
|
||||||
0 === strpos($structure, '%tag%') ||
|
0 === strpos($structure, '%tag%') ||
|
||||||
|
|
Loading…
Reference in New Issue