[wp-hackers] Filter: rewrite_rules_array

Jason Webster jason at intraffic.net
Thu Jun 5 20:51:23 GMT 2008

Ahh, perfect.

So, if I need rule to be matched first, I'll need to array_unshift() it 
onto the rules array, instead of appending it.


Andy Skelton wrote:
> On Thu, Jun 5, 2008 at 3:07 PM, Jason Webster <jason at intraffic.net> wrote:
>> Could you explain the precedence of the rewrite rules? I would image that
>> they would be ascending, so rules added last are checked first, but that
>> doesn't seem to be the case.
> They are processed by a foreach in WP::parse_request()
> (wp-includes/classes.php).
> Andy
> _______________________________________________
> 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