Make WordPress Core

Changeset 15988


Ignore:
Timestamp:
10/27/2010 12:27:08 AM (14 years ago)
Author:
nacin
Message:

Bool cast preg_match. see #9824.

File:
1 edited

Legend:

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

    r15987 r15988  
    19151915        $this->use_trailing_slashes = ( '/' == substr($this->permalink_structure, -1, 1) );
    19161916
    1917         $this->use_verbose_page_rules = preg_match( "#^/%(postname|category|tag|author)%#", $this->permalink_structure );
     1917        $this->use_verbose_page_rules = !! preg_match( "#^/%(postname|category|tag|author)%#", $this->permalink_structure );
    19181918    }
    19191919
Note: See TracChangeset for help on using the changeset viewer.