summaryrefslogtreecommitdiffstatshomepage
path: root/src/wp-includes/customize/class-wp-customize-background-image-control.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/wp-includes/customize/class-wp-customize-background-image-control.php')
-rw-r--r--src/wp-includes/customize/class-wp-customize-background-image-control.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wp-includes/customize/class-wp-customize-background-image-control.php b/src/wp-includes/customize/class-wp-customize-background-image-control.php
index 588e32a9c8..50956f8522 100644
--- a/src/wp-includes/customize/class-wp-customize-background-image-control.php
+++ b/src/wp-includes/customize/class-wp-customize-background-image-control.php
@@ -40,7 +40,9 @@ class WP_Customize_Background_Image_Control extends WP_Customize_Image_Control {
public function enqueue() {
parent::enqueue();
+ $custom_background = get_theme_support( 'custom-background' );
wp_localize_script( 'customize-controls', '_wpCustomizeBackground', array(
+ 'defaults' => ! empty( $custom_background[0] ) ? $custom_background[0] : array(),
'nonces' => array(
'add' => wp_create_nonce( 'background-add' ),
),