Ticket #9824: fix_verbose_rewrite.patch
File fix_verbose_rewrite.patch, 612 bytes (added by , 15 years ago) |
---|
-
wp-includes/rewrite.php
old new 1981 1981 $this->use_trailing_slashes = ( '/' == substr($this->permalink_structure, -1, 1) ); 1982 1982 1983 1983 // Enable generic rules for pages if permalink structure doesn't begin with a wildcard. 1984 if ( preg_match("/^ [%]*%(?:postname|category|tag|author)%/", $this->permalink_structure) )1984 if ( preg_match("/^%(?:postname|category|tag|author)%/", $this->permalink_structure) ) 1985 1985 $this->use_verbose_page_rules = true; 1986 1986 else 1987 1987 $this->use_verbose_page_rules = false;