From 0e2dafc159963b36a103f27737db0f96ed6e3740 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Fri, 11 Jul 2014 20:26:55 +0000 Subject: [PATCH] Customizer: Use theme support defaults for background images. props philipjohn. fixes #28586. git-svn-id: https://develop.svn.wordpress.org/trunk@29103 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-customize-manager.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php index 4929d150ab..c62a0ab8a4 100644 --- a/src/wp-includes/class-wp-customize-manager.php +++ b/src/wp-includes/class-wp-customize-manager.php @@ -1019,7 +1019,7 @@ final class WP_Customize_Manager { $this->add_control( new WP_Customize_Background_Image_Control( $this ) ); $this->add_setting( 'background_repeat', array( - 'default' => 'repeat', + 'default' => get_theme_support( 'custom-background', 'default-repeat' ), 'theme_supports' => 'custom-background', ) ); @@ -1036,7 +1036,7 @@ final class WP_Customize_Manager { ) ); $this->add_setting( 'background_position_x', array( - 'default' => 'left', + 'default' => get_theme_support( 'custom-background', 'default-position-x' ), 'theme_supports' => 'custom-background', ) ); @@ -1052,7 +1052,7 @@ final class WP_Customize_Manager { ) ); $this->add_setting( 'background_attachment', array( - 'default' => 'fixed', + 'default' => get_theme_support( 'custom-background', 'default-attachment' ), 'theme_supports' => 'custom-background', ) ); @@ -1061,8 +1061,8 @@ final class WP_Customize_Manager { 'section' => 'background_image', 'type' => 'radio', 'choices' => array( - 'fixed' => __('Fixed'), 'scroll' => __('Scroll'), + 'fixed' => __('Fixed'), ), ) );