]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/customize/class-wp-customize-background-image-control.php
WordPress 4.7
[autoinstalls/wordpress.git] / wp-includes / customize / class-wp-customize-background-image-control.php
index 588e32a9c81d2b5c02c0f53bcb4bbc8e366203e7..50956f85223793f9ba851b38fec366058a7e9071 100644 (file)
@@ -40,7 +40,9 @@ class WP_Customize_Background_Image_Control extends WP_Customize_Image_Control {
        public function enqueue() {
                parent::enqueue();
 
        public function enqueue() {
                parent::enqueue();
 
+               $custom_background = get_theme_support( 'custom-background' );
                wp_localize_script( 'customize-controls', '_wpCustomizeBackground', array(
                wp_localize_script( 'customize-controls', '_wpCustomizeBackground', array(
+                       'defaults' => ! empty( $custom_background[0] ) ? $custom_background[0] : array(),
                        'nonces' => array(
                                'add' => wp_create_nonce( 'background-add' ),
                        ),
                        'nonces' => array(
                                'add' => wp_create_nonce( 'background-add' ),
                        ),