[wp-trac] [WordPress Trac] #18298: deprecate TEMPLATEPATH and STYLESHEETPATH
WordPress Trac
noreply at wordpress.org
Fri May 27 14:00:12 UTC 2022
#18298: deprecate TEMPLATEPATH and STYLESHEETPATH
---------------------------+-----------------------------
Reporter: aaroncampbell | Owner: wonderboymusic
Type: enhancement | Status: reopened
Priority: normal | Milestone: Future Release
Component: Themes | Version: 3.0
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: template
---------------------------+-----------------------------
Comment (by sebastienserre):
Hello,
I think this ticket should be consider again as logs are full of
{{{
PHP Warning: Use of undefined constant TEMPLATEPATH - assumed
'TEMPLATEPATH' (this will throw an Error in a future version of PHP) in
/var/www/XXX/prod/wp-includes/theme.php on line 158
Warning: Use of undefined constant TEMPLATEPATH - assumed 'TEMPLATEPATH'
(this will throw an Error in a future version of PHP) in /var/www/XXX/prod
/wp-includes/theme.php on line 158
PHP Warning: Use of undefined constant STYLESHEETPATH - assumed
'STYLESHEETPATH' (this will throw an Error in a future version of PHP) in
/var/www/XXX/prod/wp-includes/theme.php on line 158
Warning: Use of undefined constant STYLESHEETPATH - assumed
'STYLESHEETPATH' (this will throw an Error in a future version of PHP) in
/var/www/XXX/prod/wp-includes/theme.php on line 158
}}}
We should maybe just check if constant are defined ?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18298#comment:40>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list