[wp-hackers] Permalink Performance

Ryan Bilesky rbilesky at gmail.com
Fri Oct 22 17:46:10 UTC 2010


Great.  Seems to work as expected now on my install of wordpress so I am
going to generate a diff and attach it to the ticket.

On Fri, Oct 22, 2010 at 2:33 AM, scribu <mail at scribu.net> wrote:

> 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) )
>  _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list