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

Sakin Shrestha info at catchinternet.com
Sat Jun 9 02:26:01 UTC 2012


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


More information about the theme-reviewers mailing list