From ea8ea55d49195e162ea838b8bb9c7e60c6dd1ebc Mon Sep 17 00:00:00 2001 From: nacin Date: Wed, 27 Oct 2010 00:27:08 +0000 Subject: [PATCH] Bool cast preg_match. see #9824. git-svn-id: http://svn.automattic.com/wordpress/trunk@15988 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/rewrite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/rewrite.php b/wp-includes/rewrite.php index 96e56f9fb..acf8711db 100644 --- a/wp-includes/rewrite.php +++ b/wp-includes/rewrite.php @@ -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 ); } /**