Ticket #9824: revert-r15987.diff
File revert-r15987.diff, 1.0 KB (added by , 14 years ago) |
---|
-
wp-includes/rewrite.php
1897 1897 $this->root = ''; 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); 1903 1902 unset($this->page_structure); 1904 1903 unset($this->search_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 1913 1915 /**