WordPress.org

Make WordPress Core

Ticket #9824: fix_verbose_rewrite.patch

File fix_verbose_rewrite.patch, 612 bytes (added by blt4, 8 years ago)
  • wp-includes/rewrite.php

    old new  
    19811981                $this->use_trailing_slashes = ( '/' == substr($this->permalink_structure, -1, 1) );
    19821982
    19831983                // 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) )
    19851985                         $this->use_verbose_page_rules = true;
    19861986                else
    19871987                        $this->use_verbose_page_rules = false;