WordPress.org

Make WordPress Core

Changeset 7665


Ignore:
Timestamp:
04/14/2008 05:18:53 PM (10 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/rewrite.php

    r7574 r7665  
    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.