Make WordPress Core

Changeset 7666


Ignore:
Timestamp:
04/14/2008 05:19:40 PM (17 years ago)
Author:
ryan
Message:

Handle pathinfo structures when determining if verbose page rules should be used. Props dlo. fixes #6650 #6570 for 2.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/wp-includes/rewrite.php

    r7583 r7666  
    994994        // Enable generic rules for pages if permalink structure doesn't begin with a wildcard.
    995995        $structure = ltrim($this->permalink_structure, '/');
     996        if ( $this->using_index_permalinks() )
     997            $structure = ltrim($this->permalink_structure, $this->index . '/');
    996998        if ( 0 === strpos($structure, '%postname%') ||
    997999             0 === strpos($structure, '%category%') ||
Note: See TracChangeset for help on using the changeset viewer.