[wp-hackers] 2.5 Messes Up My Plugin - Rewrite Rules
DD32
wordpress at dd32.id.au
Sat Mar 29 21:22:18 GMT 2008
$wp_rewrite->rules = $wp_rewrite->rules + $new_rules;
change to:
$wp_rewrite->rules = $new_rules + $wp_rewrite->rules;
Theres a new Greedy Rewrite rule which eats unmatched URL's for breakfast.
I think there might be some API which can be used now which will prevent
things like that happening, only i'm not sure of what the API is right now.
Heres a ticket with a workaround, Or you can just change the array
additions like above. http://trac.wordpress.org/ticket/6110
On Sun, 30 Mar 2008 07:06:01 +1100, Alex Andrews <awgandrews at gmail.com>
wrote:
> Since upgrading to 2.5, my fairly simple plugin no longer works. While
> I can access all the "pages" via (/?a_variable=blah), the mod_rewrite
> element does not work at all (/blah/).
>
> 1. What changes have been made to the Wordpress mod_rewrite that means
> this may well be the case?
>
> 2. Here is the code in question http://pastebin.com/f799c4f97. What is
> going on here then?
>
> Really want to upgrade, but can't do so.
>
> Downgrading to the last version makes it work again fine, apart from I
> can't login, because the passwords are messed up.
>
> Thanks very much indeed.
>
> Alex
>
More information about the wp-hackers
mailing list