Ticket #30358: 30358-choice-a.diff
File 30358-choice-a.diff, 1.3 KB (added by , 10 years ago) |
---|
-
wp-content/themes/twentyfifteen/inc/customizer.php
18 18 $color_scheme = twentyfifteen_get_color_scheme(); 19 19 20 20 $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; 21 $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';22 21 23 22 // Add color scheme setting and control. 24 23 $wp_customize->add_setting( 'color_scheme', array( -
wp-content/themes/twentyfifteen/js/customize-preview.js
1 1 /** 2 * Live-update changed settings in real time in the Customizer preview. 2 * Live-update changed settings in real time in the Customizer preview. 3 3 */ 4 4 5 5 ( function( $ ) { … … 17 17 } ); 18 18 } ); 19 19 20 // Site tagline.21 wp.customize( 'blogdescription', function( value ) {22 value.bind( function( to ) {23 $( '.site-description' ).text( to );24 } );25 } );26 27 20 // Color Scheme CSS. 28 21 wp.customize( 'color_scheme_css', function( value ) { 29 22 value.bind( function( to ) {