From 118977aacfeec66045db682a1ad8cbd6cdad7205 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Fri, 11 Jul 2014 20:27:14 +0000 Subject: [PATCH] Customizer: Use theme support defaults for background images. props philipjohn. fixes #28586. Built from https://develop.svn.wordpress.org/trunk@29103 git-svn-id: http://core.svn.wordpress.org/trunk@28889 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-customize-manager.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php index 4929d150ab..c62a0ab8a4 100644 --- a/wp-includes/class-wp-customize-manager.php +++ b/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'), ), ) );