git-svn-id: https://develop.svn.wordpress.org/trunk@17226 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cc3ed56b35
commit
0c2c9f24a5
@ -1897,17 +1897,19 @@ class WP_Rewrite {
|
|||||||
$this->root = '';
|
$this->root = '';
|
||||||
if ( $this->using_index_permalinks() )
|
if ( $this->using_index_permalinks() )
|
||||||
$this->root = $this->index . '/';
|
$this->root = $this->index . '/';
|
||||||
|
|
||||||
unset($this->author_structure);
|
unset($this->author_structure);
|
||||||
unset($this->date_structure);
|
unset($this->date_structure);
|
||||||
unset($this->page_structure);
|
unset($this->page_structure);
|
||||||
unset($this->search_structure);
|
unset($this->search_structure);
|
||||||
unset($this->feed_structure);
|
unset($this->feed_structure);
|
||||||
unset($this->comment_feed_structure);
|
unset($this->comment_feed_structure);
|
||||||
|
|
||||||
$this->use_trailing_slashes = ( '/' == substr($this->permalink_structure, -1, 1) );
|
$this->use_trailing_slashes = ( '/' == substr($this->permalink_structure, -1, 1) );
|
||||||
|
|
||||||
$this->use_verbose_page_rules = (bool) preg_match( "#^/%(postname|category|tag|author)%#", $this->permalink_structure );
|
// Enable generic rules for pages if permalink structure doesn't begin with a wildcard.
|
||||||
|
if ( preg_match("/^[^%]*%(?:postname|category|tag|author)%/", $this->permalink_structure) )
|
||||||
|
$this->use_verbose_page_rules = true;
|
||||||
|
else
|
||||||
|
$this->use_verbose_page_rules = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user