[theme-reviewers] TEMPLATEPATH/STYLESHEETPATH are being deprecated

Dion Hulse (dd32) wordpress at dd32.id.au
Fri Aug 19 03:39:53 UTC 2011


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
>
>


More information about the theme-reviewers mailing list