[wp-trac] [WordPress Trac] #18298: deprecate TEMPLATEPATH and STYLESHEETPATH
WordPress Trac
noreply at wordpress.org
Thu Oct 19 16:00:44 UTC 2023
#18298: deprecate TEMPLATEPATH and STYLESHEETPATH
-------------------------------------------------+-------------------------
Reporter: aaroncampbell | Owner: flixos90
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.4
Component: Themes | Version: 3.0
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses: template,
add-to-field-guide | performance
-------------------------------------------------+-------------------------
Comment (by webcommsat):
For completeness, this has been added to the Field Guide. Thank you
@flixos90 and everyone who has worked on this ticket.
I presume has-patch and has-unit-tests tags can now be removed from this
ticket too for housekeeping.
Replying to [comment:79 flixos90]:
> I think this should be added to the field guide as it is not significant
enough to warrant a dev note and can be quickly explained. Maybe something
like:
>
> > The `TEMPLATEPATH` and `STYLESHEETPATH` constants have been
deprecated. `get_template_directory()` and `get_stylesheet_directory()`
should be used instead.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18298#comment:80>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list