mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-09 03:30:06 +00:00
Handle pathinfo structures when determining if verbose page rules should be used. Props dlo. fixes #6650 #6570 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7665 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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%') ||
|
||||||
|
|||||||
Reference in New Issue
Block a user