Changeset 11335
- Timestamp:
- 05/14/2009 09:50:20 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/rewrite.php
r11325 r11335 1823 1823 1824 1824 // Enable generic rules for pages if permalink structure doesn't begin with a wildcard. 1825 $structure = ltrim($this->permalink_structure, '/'); 1826 if ( $this->using_index_permalinks() ) 1827 $structure = ltrim($this->permalink_structure, $this->index . '/'); 1828 if ( 0 === strpos($structure, '%postname%') || 1829 0 === strpos($structure, '%category%') || 1830 0 === strpos($structure, '%tag%') || 1831 0 === strpos($structure, '%author%') ) 1825 if ( preg_match("/^[^%]*%(?:postname|category|tag|author)%/", $this->permalink_structure) ) 1832 1826 $this->use_verbose_page_rules = true; 1833 1827 else
Note: See TracChangeset
for help on using the changeset viewer.