[wp-trac] [WordPress Trac] #18298: deprecate TEMPLATEPATH and STYLESHEETPATH

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 18 17:56:53 UTC 2011


#18298: deprecate TEMPLATEPATH and STYLESHEETPATH
---------------------------+------------------------------
 Reporter:  aaroncampbell  |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Themes         |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |
---------------------------+------------------------------

Comment (by chipbennett):

 Replying to [comment:10 scribu]:
 > @chip: Log Deprecated Notices plugin can't do anything about it, since
 there's no mechanism in PHP to find out when a particular constant is
 used. Same for global variables (which is why they're evil).

 Why is that? Couldn't either Plugin read the phpDoc headers, and cross
 reference the `@deprecated` tag against the constant being used anywhere
 in the Theme files? (Isn't that what they do anyway, to provide the
 deprecation (since-version, alternative function)?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18298#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list