mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 22:45:39 +00:00
Twenty Fifteen: updates to customize-preview.js missed in r30274.
Props celloexpressions, See #29988. Built from https://develop.svn.wordpress.org/trunk@30275 git-svn-id: http://core.svn.wordpress.org/trunk@30275 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fa81522cb2
commit
68a6a69a91
@ -3,15 +3,30 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
( function( $ ) {
|
( 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.
|
// Site title and description.
|
||||||
wp.customize( 'blogname', function( value ) {
|
wp.customize( 'blogname', function( value ) {
|
||||||
value.bind( function( to ) {
|
value.bind( function( to ) {
|
||||||
$( '.site-title a' ).text( to );
|
$( '.site-title a' ).text( to );
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
wp.customize( 'blogdescription', function( value ) {
|
wp.customize( 'blogdescription', function( value ) {
|
||||||
value.bind( function( to ) {
|
value.bind( function( to ) {
|
||||||
$( '.site-description' ).text( to );
|
$( '.site-description' ).text( to );
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
wp.customize( 'color_scheme_css', function( value ) {
|
||||||
|
value.bind( function( to ) {
|
||||||
|
$style.html( to );
|
||||||
|
} );
|
||||||
|
} );
|
||||||
|
|
||||||
} )( jQuery );
|
} )( jQuery );
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.1-alpha-30274';
|
$wp_version = '4.1-alpha-30275';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user