From 1a41abe2890364d7269ae81f8635c9a4efcad55b Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 14 Apr 2008 17:18:53 +0000 Subject: [PATCH] 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 --- wp-includes/rewrite.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/rewrite.php b/wp-includes/rewrite.php index 4e746ff72..22294974c 100644 --- a/wp-includes/rewrite.php +++ b/wp-includes/rewrite.php @@ -993,6 +993,8 @@ class WP_Rewrite { // Enable generic rules for pages if permalink structure doesn't begin with a wildcard. $structure = ltrim($this->permalink_structure, '/'); + if ( $this->using_index_permalinks() ) + $structure = ltrim($this->permalink_structure, $this->index . '/'); if ( 0 === strpos($structure, '%postname%') || 0 === strpos($structure, '%category%') || 0 === strpos($structure, '%tag%') ||