[wp-trac] Re: [WordPress Trac] #6110: Custom permalinks created from plugin hooking in to WP redirects don't work.

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 7 23:06:25 GMT 2008


#6110: Custom permalinks created from plugin hooking in to WP redirects don't
work.
---------------------+------------------------------------------------------
 Reporter:  nerrad   |        Owner:  anonymous
     Type:  defect   |       Status:  new      
 Priority:  high     |    Milestone:  2.5      
Component:  General  |      Version:  2.5      
 Severity:  major    |   Resolution:           
 Keywords:           |  
---------------------+------------------------------------------------------
Comment (by DD32):

 A Work around is to add the plugins rules at the start of the array:
 {{{
 $rules = current rules
 $rewrite = plugin generated rules
         return ( $rewrite + $rules );
 rather than:
         return ( $rules + $rewrite );
 }}}
 But that requires !WordPress to check those rules first, While not a
 problem specifically, a lot of plugins are setup to add rules to the end
 of the list, rather than the start

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6110#comment:9>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list