WordPress.org

Make WordPress Core

Changeset 17226


Ignore:
Timestamp:
01/06/2011 03:59:22 AM (7 years ago)
Author:
ryan
Message:

Revert [15987] [15988] [15989]. Props SergeyBiryukov. see #9824 fixes #16041

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/rewrite.php

    r17071 r17226  
    18981898        if ( $this->using_index_permalinks() )
    18991899            $this->root = $this->index . '/';
    1900 
    19011900        unset($this->author_structure);
    19021901        unset($this->date_structure);
     
    19051904        unset($this->feed_structure);
    19061905        unset($this->comment_feed_structure);
    1907 
    19081906        $this->use_trailing_slashes = ( '/' == substr($this->permalink_structure, -1, 1) );
    19091907
    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;
    19111913    }
    19121914
Note: See TracChangeset for help on using the changeset viewer.