Changeset 20220
- Timestamp:
- 03/20/2012 07:06:43 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/deprecated.php
r20218 r20220 2956 2956 */ 2957 2957 function get_theme( $theme ) { 2958 _deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme( $stylesheet)' );2958 _deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme( $stylesheet )' ); 2959 2959 2960 2960 $themes = get_themes(); … … 2996 2996 */ 2997 2997 function 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 )' ); 2999 2999 return add_theme_support( 'custom-header', array( 3000 3000 'callback' => $callback, … … 3015 3015 */ 3016 3016 function 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\' )' ); 3018 3018 return remove_theme_support( 'custom-header' ); 3019 3019 } … … 3035 3035 */ 3036 3036 function 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 )' ); 3041 3038 3042 3039 return add_theme_support( 'custom-background', array( … … 3056 3053 */ 3057 3054 function 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\' )' ); 3059 3056 return remove_theme_support( 'custom-background' ); 3060 3057 }
Note: See TracChangeset
for help on using the changeset viewer.