Changeset 17226 for trunk/wp-includes/rewrite.php
- Timestamp:
- 01/06/2011 03:59:22 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/rewrite.php
r17071 r17226 1898 1898 if ( $this->using_index_permalinks() ) 1899 1899 $this->root = $this->index . '/'; 1900 1901 1900 unset($this->author_structure); 1902 1901 unset($this->date_structure); … … 1905 1904 unset($this->feed_structure); 1906 1905 unset($this->comment_feed_structure); 1907 1908 1906 $this->use_trailing_slashes = ( '/' == substr($this->permalink_structure, -1, 1) ); 1909 1907 1910 $this->use_verbose_page_rules = (bool) preg_match( "#^/%(postname|category|tag|author)%#", $this->permalink_structure ); 1908 // Enable generic rules for pages if permalink structure doesn't begin with a wildcard. 1909 if ( preg_match("/^[^%]*%(?:postname|category|tag|author)%/", $this->permalink_structure) ) 1910 $this->use_verbose_page_rules = true; 1911 else 1912 $this->use_verbose_page_rules = false; 1911 1913 } 1912 1914
Note: See TracChangeset
for help on using the changeset viewer.