Changeset 15987 for trunk/wp-includes/rewrite.php
- Timestamp:
- 10/27/2010 12:25:03 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/rewrite.php
r15826 r15987 1905 1905 if ( $this->using_index_permalinks() ) 1906 1906 $this->root = $this->index . '/'; 1907 1907 1908 unset($this->author_structure); 1908 1909 unset($this->date_structure); … … 1911 1912 unset($this->feed_structure); 1912 1913 unset($this->comment_feed_structure); 1914 1913 1915 $this->use_trailing_slashes = ( '/' == substr($this->permalink_structure, -1, 1) ); 1914 1916 1915 // Enable generic rules for pages if permalink structure doesn't begin with a wildcard. 1916 if ( preg_match("/^[^%]*%(?:postname|category|tag|author)%/", $this->permalink_structure) ) 1917 $this->use_verbose_page_rules = true; 1918 else 1919 $this->use_verbose_page_rules = false; 1917 $this->use_verbose_page_rules = preg_match( "#^/%(postname|category|tag|author)%#", $this->permalink_structure ); 1920 1918 } 1921 1919
Note: See TracChangeset
for help on using the changeset viewer.