--- a/wp/wp-includes/customize/class-wp-customize-background-image-control.php Mon Oct 14 18:06:33 2019 +0200
+++ b/wp/wp-includes/customize/class-wp-customize-background-image-control.php Mon Oct 14 18:28:13 2019 +0200
@@ -26,10 +26,14 @@
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
*/
public function __construct( $manager ) {
- parent::__construct( $manager, 'background_image', array(
- 'label' => __( 'Background Image' ),
- 'section' => 'background_image',
- ) );
+ parent::__construct(
+ $manager,
+ 'background_image',
+ array(
+ 'label' => __( 'Background Image' ),
+ 'section' => 'background_image',
+ )
+ );
}
/**
@@ -41,11 +45,15 @@
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' ),
- ),
- ) );
+ wp_localize_script(
+ 'customize-controls',
+ '_wpCustomizeBackground',
+ array(
+ 'defaults' => ! empty( $custom_background[0] ) ? $custom_background[0] : array(),
+ 'nonces' => array(
+ 'add' => wp_create_nonce( 'background-add' ),
+ ),
+ )
+ );
}
}