Changes between Initial Version and Version 7 of Ticket #22355
- Timestamp:
- 11/03/2012 10:05:01 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22355
- Property Cc obenland justinsainton@… curtis@… pippin@… mike@… added
-
Ticket #22355 – Description
initial v7 7 7 '''Solution''' 8 8 9 Create a stack of template locations, and allow !WordPress to transverse an array of template locations, following the same STYLESHEETPATH/TEMPLATEPATH order it always has, while also enabling additional paths to be added with a priority.9 Create a stack of template locations, and allow !WordPress to transverse this array following the same STYLESHEETPATH/TEMPLATEPATH order it always has, while also enabling additional paths to be added with a priority (similar to the filters API.) 10 10 11 11 ---- … … 20 20 Register template stack is a wrapper for the 'template_stack' filter. get_template_stack() is a variation of apply_filters() that returns the array of filtered template locations. 21 21 22 A modification s to wp-settings.php calls register_template_stack(), passing get_stylesheet_directory() and get_template_directory() as callbacks, which initialized the core parent/child relationship.22 A modification to wp-settings.php calls register_template_stack() two times, passing get_stylesheet_directory() and get_template_directory() as callbacks, to initialize the core parent/child relationship, ensuring complete backwards compatibility. 23 23 24 24 ----