Don't suggest only add_theme_support('custom-background') -- suggest it with $args even if it wasn't called with any arguments. In particular, default-color should be used by themes as a good user experience improvement. see #20249.

git-svn-id: http://svn.automattic.com/wordpress/trunk@20220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-03-20 19:06:43 +00:00
parent edb6c96b9f
commit 8eb703d33a
1 changed files with 5 additions and 8 deletions

View File

@ -3034,10 +3034,7 @@ function remove_custom_image_header() {
* @param callback $admin_image_div_callback Output a custom background image div on the custom background administration screen. Optional.
*/
function add_custom_background( $callback = '', $admin_header_callback = '', $admin_image_div_callback = '' ) {
if ( $callback || $admin_header_callback || $admin_image_div_callback )
_deprecated_function( __FUNCTION__, '3.4', 'add_theme_support( \'custom-background\', $args )' );
else
_deprecated_function( __FUNCTION__, '3.4', 'add_theme_support(\'custom-background\')' );
return add_theme_support( 'custom-background', array(
'callback' => $callback,