mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Bool cast preg_match. see #9824.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15988 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8feaf39b4d
commit
ea8ea55d49
@ -1914,7 +1914,7 @@ class WP_Rewrite {
|
||||
|
||||
$this->use_trailing_slashes = ( '/' == substr($this->permalink_structure, -1, 1) );
|
||||
|
||||
$this->use_verbose_page_rules = preg_match( "#^/%(postname|category|tag|author)%#", $this->permalink_structure );
|
||||
$this->use_verbose_page_rules = !! preg_match( "#^/%(postname|category|tag|author)%#", $this->permalink_structure );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user