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
This commit is contained in:
parent
a20d6ebec6
commit
118977aacf
|
@ -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'),
|
||||
),
|
||||
) );
|
||||
|
||||
|
|
Loading…
Reference in New Issue