[wp-trac] [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:30:17 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
--------------------------+-------------------------------------------------
 As per the discussion here [1] where scribu gave a +1, this patch will
 convert "template_redirect" from an action to a filter in template-
 loader.php. This allows the plugin developer to return false instead of
 execute exit (but exit works the same way) in the case that he or she
 wants to indicate to terminate if-else processing of the WordPress URL
 routing. Also this will follow a more expected pattern for developers
 making it easier for new developers to discover and use
 "template_redirect" for the purpose of overriding URLs.



 [1] http://www.nabble.com/Addition-to-template-loader.php-td22866661.html

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


More information about the wp-trac mailing list