- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/customize/class-wp-customize-background-image-control.php
r38948 r42343 27 27 */ 28 28 public function __construct( $manager ) { 29 parent::__construct( $manager, 'background_image', array( 30 'label' => __( 'Background Image' ), 31 'section' => 'background_image', 32 ) ); 29 parent::__construct( 30 $manager, 'background_image', array( 31 'label' => __( 'Background Image' ), 32 'section' => 'background_image', 33 ) 34 ); 33 35 } 34 36 … … 42 44 43 45 $custom_background = get_theme_support( 'custom-background' ); 44 wp_localize_script( 'customize-controls', '_wpCustomizeBackground', array( 45 'defaults' => ! empty( $custom_background[0] ) ? $custom_background[0] : array(), 46 'nonces' => array( 47 'add' => wp_create_nonce( 'background-add' ), 48 ), 49 ) ); 46 wp_localize_script( 47 'customize-controls', '_wpCustomizeBackground', array( 48 'defaults' => ! empty( $custom_background[0] ) ? $custom_background[0] : array(), 49 'nonces' => array( 50 'add' => wp_create_nonce( 'background-add' ), 51 ), 52 ) 53 ); 50 54 } 51 55 }
Note: See TracChangeset
for help on using the changeset viewer.