WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/26/2016 06:51:11 AM (4 years ago)
Author:
westonruter
Message:

Customize: Improve custom background properties UI.

Introduces new control for managing the background position. Adds control for setting the background-size.

Props cdog, celloexpressions, grapplerulrich, MikeHansenMe, FolioVision, afercia, helen, melchoyce, karmatosed, westonruter, Kelderic, sebastian.pisula.
Fixes #22058.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/customize/class-wp-customize-background-image-control.php

    r35389 r38948  
    4141        parent::enqueue();
    4242
     43        $custom_background = get_theme_support( 'custom-background' );
    4344        wp_localize_script( 'customize-controls', '_wpCustomizeBackground', array(
     45            'defaults' => ! empty( $custom_background[0] ) ? $custom_background[0] : array(),
    4446            'nonces' => array(
    4547                'add' => wp_create_nonce( 'background-add' ),
Note: See TracChangeset for help on using the changeset viewer.