mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@38948 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -40,7 +40,9 @@ class WP_Customize_Background_Image_Control extends WP_Customize_Image_Control {
|
||||
public function enqueue() {
|
||||
parent::enqueue();
|
||||
|
||||
$custom_background = get_theme_support( 'custom-background' );
|
||||
wp_localize_script( 'customize-controls', '_wpCustomizeBackground', array(
|
||||
'defaults' => ! empty( $custom_background[0] ) ? $custom_background[0] : array(),
|
||||
'nonces' => array(
|
||||
'add' => wp_create_nonce( 'background-add' ),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user