[wp-hackers] Filter: rewrite_rules_array

Jason Webster jason at intraffic.net
Thu Jun 5 20:53:58 GMT 2008


Well, you don't even need the function call.
But, it's definitely good to know that they are processed in a 
descending order.

Jason Webster wrote:
> 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.
>
> Thanks!
>
> 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
>>   
>
> _______________________________________________
> 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