Title: Deprecated functions in function.php and custom-header.php
Last modified: August 21, 2016

---

# Deprecated functions in function.php and custom-header.php

 *  [truptig](https://wordpress.org/support/users/truptig/)
 * (@truptig)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/deprecated-functions-in-functionphp-and-custom-headerphp/)
 * I received notice for using deprecated function add_custom_background() in function.
   php and add_custom_image_header() in custom-header.php
 * To fix the issue, please replace
    add_custom_background() with add_theme_support(‘
   custom-background’) and add_custom_image_header( ‘sundance_header_style’, ‘sundance_admin_header_style’,‘
   sundance_admin_header_image’ ); with add_theme_support( ‘custom-header’, array(‘
   sundance_header_style’, ‘sundance_admin_header_style’, ‘sundance_admin_header_image’));
 * Can you add this is the next version.

Viewing 1 replies (of 1 total)

 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/deprecated-functions-in-functionphp-and-custom-headerphp/#post-4223088)
 * Hi there – thanks for letting us know, we’re aware of the issue and plan to push
   out a fix. In the meantime, feel free to use the downloadable version from here,
   which includes this fix:
 * [http://public-api.wordpress.com/rest/v1/themes/download/sundance.zip](http://public-api.wordpress.com/rest/v1/themes/download/sundance.zip)

Viewing 1 replies (of 1 total)

The topic ‘Deprecated functions in function.php and custom-header.php’ is closed
to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/sundance/1.1.3/screenshot.png)
 * Sundance
 * [Support Threads](https://wordpress.org/support/theme/sundance/)
 * [Active Topics](https://wordpress.org/support/theme/sundance/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/sundance/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/sundance/reviews/)

## Tags

 * [add_custom_background](https://wordpress.org/support/topic-tag/add_custom_background/)
 * [deprecated functions](https://wordpress.org/support/topic-tag/deprecated-functions/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/deprecated-functions-in-functionphp-and-custom-headerphp/#post-4223088)
 * Status: not resolved