Make WordPress Core

Changeset 30275


Ignore:
Timestamp:
11/07/2014 09:10:10 PM (10 years ago)
Author:
iandstewart
Message:

Twenty Fifteen: updates to customize-preview.js missed in r30274.

Props celloexpressions, See #29988.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/js/customize-preview.js

    r30271 r30275  
    44
    55( function( $ ) {
     6    var $style = $( '#twentyfifteen-color-scheme-css' );
     7
     8    if ( ! $style.length ) {
     9        $style = $( 'head' ).append( '<style type="text/css" id="twentyfifteen-color-scheme-css" />' )
     10                            .find( '#twentyfifteen-color-scheme-css' );
     11    }
     12
    613    // Site title and description.
    714    wp.customize( 'blogname', function( value ) {
     
    1017        } );
    1118    } );
     19
    1220    wp.customize( 'blogdescription', function( value ) {
    1321        value.bind( function( to ) {
     
    1523        } );
    1624    } );
     25   
     26    wp.customize( 'color_scheme_css', function( value ) {
     27        value.bind( function( to ) {
     28            $style.html( to );
     29        } );
     30    } );
     31
    1732} )( jQuery );
Note: See TracChangeset for help on using the changeset viewer.