[theme-reviewers] TEMPLATEPATH/STYLESHEETPATH are being deprecated

Shawn Grundy smgrundy at live.com
Fri Aug 19 06:36:17 UTC 2011


Most people should be using get_template_directory() and get_template_directory_uri() for parent themes and get_stylesheet_directory) and get_stylesheet_directory_uri() by now anyway. Most devs see these being utilized in the twenty-eleven theme and it has been pushed for some time...plus, deprecated doesn't mean it won't work, so there shouldn't be too much of an impact...
Shawn

> From: wordpress at dd32.id.au
> Date: Fri, 19 Aug 2011 13:39:53 +1000
> To: theme-reviewers at lists.wordpress.org
> Subject: Re: [theme-reviewers] TEMPLATEPATH/STYLESHEETPATH are being	deprecated
> 
> The constants being deprecated will not affect most people negitivly.
> Deprecated (in WordPress terms at least) means it's not the recomended
> method, and should be avoided at all costs when developing something
> new (a theme in this case), there'll always be a dropin replacement
> available too.
> 
> If a theme uses a deprecated method, they may ultimately lack
> flexibility (For example, themes which use the constants are unusable
> on WordPress.com until they're updated to use the functions, Some
> specialised plugins which switch themes also do hacky workarounds, or
> can't perform as they'd like to at all on a theme which uses the
> constants, etc.).
> 
> So client themes shouldn't need to be updated, Unless they need to be
> in order to take advatage of a new plugin/core functionality. But for
> the good of the world, Repository themes would need to update (when
> they release a new version) to use the functions instead of constants
> when those guidelines took effect.
> 
> On 19 August 2011 12:54, Merci Javier <mercijavier at gmail.com> wrote:
> >
> > Oh man, that'll hurt. Many would have to update themes in client sites.
> >
> > Thank you for the heads-up, Chip.
> >
> >
> > On Thu, Aug 18, 2011 at 6:40 AM, Chip Bennett <chip at chipbennett.net> wrote:
> >>
> >> Good morning, all,
> >> Just a heads-up, in case you're not aware: the TEMPLATEPATH and
> >> STYLESHEETPATH constants are slated for deprecation.
> >> The Guidelines haven't changed yet, but expect that they will in the
> >> future (most likely with the WordPress 3.3 release). I would strongly
> >> recommend going ahead and replacing these constants now, with their
> >> equivalent functions, get_template_directory() and
> >> get_stylesheet_directory().
> >> (See the in-ticket comments for why this is the best practice, anyway.)
> >> Chip
> >> _______________________________________________
> >> theme-reviewers mailing list
> >> theme-reviewers at lists.wordpress.org
> >> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
> >>
> >
> >
> > _______________________________________________
> > theme-reviewers mailing list
> > theme-reviewers at lists.wordpress.org
> > http://lists.wordpress.org/mailman/listinfo/theme-reviewers
> >
> >
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20110818/2202f2d6/attachment.htm>


More information about the theme-reviewers mailing list