Twenty Fifteen: updates to customize-preview.js missed in r30274.
Props celloexpressions, See #29988. git-svn-id: https://develop.svn.wordpress.org/trunk@30275 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
975ee2d0a8
commit
a4ecf4b080
@ -3,15 +3,30 @@
|
||||
*/
|
||||
|
||||
( function( $ ) {
|
||||
var $style = $( '#twentyfifteen-color-scheme-css' );
|
||||
|
||||
if ( ! $style.length ) {
|
||||
$style = $( 'head' ).append( '<style type="text/css" id="twentyfifteen-color-scheme-css" />' )
|
||||
.find( '#twentyfifteen-color-scheme-css' );
|
||||
}
|
||||
|
||||
// Site title and description.
|
||||
wp.customize( 'blogname', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
$( '.site-title a' ).text( to );
|
||||
} );
|
||||
} );
|
||||
|
||||
wp.customize( 'blogdescription', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
$( '.site-description' ).text( to );
|
||||
} );
|
||||
} );
|
||||
|
||||
wp.customize( 'color_scheme_css', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
$style.html( to );
|
||||
} );
|
||||
} );
|
||||
|
||||
} )( jQuery );
|
Loading…
Reference in New Issue
Block a user