Bool cast preg_match. see #9824.

git-svn-id: https://develop.svn.wordpress.org/trunk@15988 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-10-27 00:27:08 +00:00
parent f196a4932c
commit 2fa2485d20
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}
/**