add two new actions to track template loading
|Reported by:||willnorris||Owned by:||koopersmith|
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.