Make WordPress Core


Ignore:
Timestamp:
07/11/2014 08:26:55 PM (10 years ago)
Author:
ocean90
Message:

Customizer: Use theme support defaults for background images.

props philipjohn.
fixes #28586.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r29051 r29103  
    10201020
    10211021        $this->add_setting( 'background_repeat', array(
    1022             'default'        => 'repeat',
     1022            'default'        => get_theme_support( 'custom-background', 'default-repeat' ),
    10231023            'theme_supports' => 'custom-background',
    10241024        ) );
     
    10371037
    10381038        $this->add_setting( 'background_position_x', array(
    1039             'default'        => 'left',
     1039            'default'        => get_theme_support( 'custom-background', 'default-position-x' ),
    10401040            'theme_supports' => 'custom-background',
    10411041        ) );
     
    10531053
    10541054        $this->add_setting( 'background_attachment', array(
    1055             'default'        => 'fixed',
     1055            'default'        => get_theme_support( 'custom-background', 'default-attachment' ),
    10561056            'theme_supports' => 'custom-background',
    10571057        ) );
     
    10621062            'type'       => 'radio',
    10631063            'choices'    => array(
     1064                'scroll'     => __('Scroll'),
    10641065                'fixed'      => __('Fixed'),
    1065                 'scroll'     => __('Scroll'),
    10661066            ),
    10671067        ) );
Note: See TracChangeset for help on using the changeset viewer.