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

Emil Uzelac emil at themeid.com
Sat Jun 9 02:29:29 UTC 2012


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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20120608/c2c6afa1/attachment.htm>


More information about the theme-reviewers mailing list