[wp-hackers] Permalink Performance

scribu mail at scribu.net
Fri Oct 22 09:33:22 UTC 2010


On Fri, Oct 22, 2010 at 11:38 AM, Ryan Bilesky <rbilesky at gmail.com> wrote:

> if ( preg_match("\A/%(?:postname|category|tag|author)%/",
> $this->permalink_structure) )
>

You have to have a delimiter, preferably something different from '/' in
this case:

if ( preg_match("#\A/%(?:postname|category|tag|author)%#",
$this->permalink_structure) )


More information about the wp-hackers mailing list