[theme-reviewers] About Backward Compatibility add_theme_support( 'custom-background' )

Sakin Shrestha info at catchinternet.com
Sat Jun 9 02:37:30 UTC 2012


Hi Emil,

Thanks a lot. Can we put this somewhere so that other reviewer knows about
it. As I have been commented about this as well.

Regards,
Sakin

On Sat, Jun 9, 2012 at 8:14 AM, Emil Uzelac <emil at themeid.com> wrote:

> you're good, if you check this with Theme Check Dev version it will be all
> right :)
>
> Emil
>
> On Fri, Jun 8, 2012 at 9:26 PM, Sakin Shrestha <info at catchinternet.com>wrote:
>
>> Hi Review Team,
>>
>> I have question about the backward compatibility of add_theme_support as
>> this is shown required by Theme Check plugin. The message is as "REQUIRED:
>> *add_theme_support( custom-background )* was found in the file *
>> functions.php*. Use *add_custom_background()* instead."
>>
>> See my code below:
>>     // Add support for custom backgrounds
>>     // WordPress 3.4+
>>     if ( function_exists( 'get_custom_header') ) {
>>         add_theme_support( 'custom-background' );
>>     } else {
>>         // Backward Compatibility
>>
>>         /**
>>          * This feature allows users to use custom background for a theme.
>>          * @see
>> http://codex.wordpress.org/Function_Reference/add_custom_background
>>          */
>>         add_custom_background();
>>     }
>>
>>
>> --
>> Regards,
>> Sakin
>>
>> _______________________________________________
>> 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/20120609/d09db04d/attachment.htm>


More information about the theme-reviewers mailing list