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

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 18 18:04:18 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 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.  For example, how do
 you find:
 {{{
 $test = $prefix . TEMPLATEPATH . $suffix;
 }}}
 but not
 {{{
 $test = $prefix . 'TEMPLATEPATH' . $suffix;
 $test = "$prefix TEMPLATEPATH $suffix";
 $test = <<<TEST
     $prefix
     Bad: TEMPLATEPATH
     $suffix
 TEST;
 }}}

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


More information about the wp-trac mailing list