Make WordPress Core

Changeset 20220


Ignore:
Timestamp:
03/20/2012 07:06:43 PM (14 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/deprecated.php

    r20218 r20220  
    29562956 */
    29572957function get_theme( $theme ) {
    2958         _deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme($stylesheet)' );
     2958        _deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme( $stylesheet )' );
    29592959
    29602960        $themes = get_themes();
     
    29962996 */
    29972997function add_custom_image_header( $callback, $admin_header_callback, $admin_image_div_callback = '' ) {
    2998         _deprecated_function( __FUNCTION__, '3.4', 'add_theme_support(\'custom-header\', $args)' );
     2998        _deprecated_function( __FUNCTION__, '3.4', 'add_theme_support( \'custom-header\', $args )' );
    29992999        return add_theme_support( 'custom-header', array(
    30003000                'callback' => $callback,
     
    30153015 */
    30163016function remove_custom_image_header() {
    3017         _deprecated_function( __FUNCTION__, '3.4', 'remove_theme_support(\'custom-header\')' );
     3017        _deprecated_function( __FUNCTION__, '3.4', 'remove_theme_support( \'custom-header\' )' );
    30183018        return remove_theme_support( 'custom-header' );
    30193019}
     
    30353035 */
    30363036function add_custom_background( $callback = '', $admin_header_callback = '', $admin_image_div_callback = '' ) {
    3037         if ( $callback || $admin_header_callback || $admin_image_div_callback )
    3038                 _deprecated_function( __FUNCTION__, '3.4', 'add_theme_support(\'custom-background\', $args)' );
    3039         else
    3040                 _deprecated_function( __FUNCTION__, '3.4', 'add_theme_support(\'custom-background\')' );
     3037        _deprecated_function( __FUNCTION__, '3.4', 'add_theme_support( \'custom-background\', $args )' );
    30413038
    30423039        return add_theme_support( 'custom-background', array(
     
    30563053 */
    30573054function remove_custom_background() {
    3058         _deprecated_function( __FUNCTION__, '3.4', 'remove_theme_support(\'custom-background\')' );
     3055        _deprecated_function( __FUNCTION__, '3.4', 'remove_theme_support( \'custom-background\' )' );
    30593056        return remove_theme_support( 'custom-background' );
    30603057}
Note: See TracChangeset for help on using the changeset viewer.