Make WordPress Core

Changes between Initial Version and Version 7 of Ticket #22355


Ignore:
Timestamp:
11/03/2012 10:05:01 PM (12 years ago)
Author:
johnjamesjacoby
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22355

    • Property Cc obenland justinsainton@… curtis@… pippin@… mike@… added
  • Ticket #22355 – Description

    initial v7  
    77'''Solution'''
    88
    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.
     9Create 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.)
    1010
    1111----
     
    2020Register 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.
    2121
    22 A modifications 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.
     22A 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.
    2323
    2424----