[wp-trac] [WordPress Trac] #15957: add two new actions to track template loading

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 23 02:23:07 UTC 2010


#15957: add two new actions to track template loading
-------------------------+-----------------------------
 Reporter:  willnorris   |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Themes       |    Version:
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 I would like to add two new actions "pre_load_template" and
 "post_load_template" inside the load_template() method.  The purpose of
 this is primarily for debugging and development purposes.  For example,
 I'd like to use these actions to add debug comments in a theme's output
 along the lines of:

 {{{
 <!-- begin ../themes/twentyten/loop.php -->
 ...
 <!-- end ../themes/twentyten/loop.php -->
 }}}

 This makes it much easier to identify which theme file is responsible for
 which part of the final page, particularly in the case where some files
 are being pulled from a parent theme and some are from the child theme.

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


More information about the wp-trac mailing list