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

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 18 18:51:10 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:12 aaroncampbell]:
 > I think that what he's saying is that you'd have to build some sort of
 regex to look for the constant being used since there's no way to actually
 throw a deprecated notice since it's not a function.

 Pross is the WPTRT's resident RegEx ninja; if anybody can figure out a way
 to do it, he can. :) So, maybe it's something that can find its way into
 Theme Check. My interest in the question (which now exceeds the scope of
 the patch itself) is in providing as much information as possible to Theme
 Developers, and getting them pre-emptively to begin to adopt the use of
 `get_template_directory_*()` and `get_stylesheet_directory_*()`.

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


More information about the wp-trac mailing list