Make WordPress Core

Ticket #26061: 26061.3.diff

File 26061.3.diff, 1.4 KB (added by celloexpressions, 9 years ago)
  • src/wp-includes/js/customize-base.js

     
    183183                        to = this.validate( to );
    184184
    185185                        // Bail if the sanitized value is null or unchanged.
    186                         if ( null === to || this._value === to )
     186                        if ( null === to || _.isEqual( from, to ) )
    187187                                return this;
    188188
    189189                        this._value = to;
  • src/wp-includes/script-loader.php

     
    374374
    375375        $scripts->add( 'hoverIntent', "/wp-includes/js/hoverIntent$suffix.js", array('jquery'), 'r7', 1 );
    376376
    377         $scripts->add( 'customize-base',     "/wp-includes/js/customize-base$suffix.js",     array( 'jquery', 'json2' ), false, 1 );
     377        $scripts->add( 'customize-base',     "/wp-includes/js/customize-base$suffix.js",     array( 'jquery', 'json2', 'underscore' ), false, 1 );
    378378        $scripts->add( 'customize-loader',   "/wp-includes/js/customize-loader$suffix.js",   array( 'customize-base' ), false, 1 );
    379379        $scripts->add( 'customize-preview',  "/wp-includes/js/customize-preview$suffix.js",  array( 'customize-base' ), false, 1 );
    380380        $scripts->add( 'customize-models',   "/wp-includes/js/customize-models.js", array( 'underscore', 'backbone' ), false, 1 );