[theme-reviewers] TEMPLATEPATH/STYLESHEETPATH are being deprecated

Simon Prosser pross at pross.org.uk
Thu Sep 8 01:33:33 UTC 2011


Its recommended in TC trunk now

On 8 September 2011 01:21, Edward Caissie <edward.caissie at gmail.com> wrote:
> I'd definitely second it as a "RECOMMENDED" item under Theme Check.
>
>
> Cais.
>
>
> On Wed, Sep 7, 2011 at 5:23 PM, Andrew Nacin <wp at andrewnacin.com> wrote:
>>
>> On Thu, Aug 18, 2011 at 9: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.)
>>
>> Should be noted that we haven't decided to deprecate these constants, and
>> it likely won't happen until 3.3.
>> That said, I would have no problem with the theme check enforcing (as a
>> suggested guideline, not a required one) that one use the functions rather
>> than the constants.
>> Cheers,
>> Nacin
>> _______________________________________________
>> 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
>
>



-- 
My Blog: http://www.pross.org.uk/
Plugins : http://www.pross.org.uk/plugins/
Themes: http://wordpress.org/extend/themes/profile/pross


More information about the theme-reviewers mailing list