[theme-reviewers] Theme Options and Functions

Chip Bennett chip at chipbennett.net
Wed Oct 20 16:22:11 UTC 2010


Awesome! Seems like we've got some consensus on that point (Theme slug as
function/db-option prefix).

Cais: something to add in the 3.1 revision?

Chip

On Wed, Oct 20, 2010 at 11:18 AM, Andrew Nacin <wp at andrewnacin.com> wrote:

> On Wed, Oct 20, 2010 at 12:15 PM, Bavota San <c at bavotasan.com> wrote:
>
>> Is a theme-slug defined in *get_theme_data()*? If so, we can suggest that
>> developers use that so the theme-slugs remain consistent and unique to the
>> theme.
>>
>
> get_theme_data() shouldn't be used on a pageload. Way too intensive. Theme
> slugs are rather trivial to fetch, via get_option('stylesheet') or
> get_option('template').
>
> But yes, theme-slug should be the function prefix as well as the options
> prefix.
>
> _______________________________________________
> 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/20101020/e7f2a3e8/attachment.htm>


More information about the theme-reviewers mailing list