[wp-trac] Re: [WordPress Trac] #9455: Change template_redirect from action to filter in template-loader.php

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 4 12:50:46 GMT 2009


#9455: Change template_redirect from action to filter in template-loader.php
--------------------------+-------------------------------------------------
 Reporter:  mikeschinkel  |       Owner:  mikeschinkel                                                     
     Type:  enhancement   |      Status:  new                                                              
 Priority:  normal        |   Milestone:  Unassigned                                                       
Component:  Permalinks    |     Version:  2.8                                                              
 Severity:  normal        |    Keywords:  template_redirect template-loader.php urls permalinks url-routing
--------------------------+-------------------------------------------------

Comment(by DD32):

 Note that any plugin which uses the template_redirect as a action
 currently, and doesnt die (its common) will cause this filter not to work
 as expected (Unless the filtering function is hooked after/later every
 other other action is hooked)

 (Thats because when the filter has actions hooked to it, it returns null.)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9455#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list