From 1795ef877cee891424103b113437d3794de1bb79 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@7665 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/rewrite.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/rewrite.php b/wp-includes/rewrite.php index 4e746ff72b..22294974c2 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%') ||