Make WordPress Core

Changes between Initial Version and Version 17 of Ticket #18298


Ignore:
Timestamp:
11/16/2011 03:45:52 PM (13 years ago)
Author:
aaroncampbell
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18298

    • Property Cc info@… chip@… added
    • Property Keywords has-patch added; needs-patch removed
    • Property Version changed from to 3.0
    • Property Type changed from defect (bug) to enhancement
  • Ticket #18298 – Description

    initial v17  
    1 As part of #15806 we wanted to add unit tests, but we came across a problem in #UT22.  Basically `locate_template()` uses these constants instead of `get_template_directory()` and `get_stylesheet_directory()` which makes it impossible to use `switch_theme()`.  It looks like the constants are only used in about 20 places through core, so I recommend we fix those places and deprecate the constants.
     1As part of #15086 we wanted to add unit tests, but we came across a problem in #UT22.  Basically `locate_template()` uses these constants instead of `get_template_directory()` and `get_stylesheet_directory()` which makes it impossible to use `switch_theme()`.  It looks like the constants are only used in about 20 places through core, so I recommend we fix those places and deprecate the constants.