Make WordPress Core

Ticket #30125: 30125.patch

File 30125.patch, 1.1 KB (added by antpb, 11 years ago)
  • src/wp-admin/js/customize-controls.js

    diff --git a/src/wp-admin/js/customize-controls.js b/src/wp-admin/js/customize-controls.js
    index 363e965..1f8a0d9 100644
    a b  
    162162                renderContent: function( callback ) {
    163163                        var template,
    164164                                selector = 'customize-control-' + this.params.type + '-content';
    165 
    166165                        callback = callback || function(){};
    167166                        if ( 0 !== $( '#tmpl-' + selector ).length ) {
    168167                                template = wp.template( selector );
  • src/wp-includes/class-wp-customize-control.php

    diff --git a/src/wp-includes/class-wp-customize-control.php b/src/wp-includes/class-wp-customize-control.php
    index cbb7cdd..f4cddad 100644
    a b class WP_Customize_Color_Control extends WP_Customize_Control { 
    555555                        if ( '#' !== data.defaultValue.substring( 0, 1 ) ) {
    556556                                defaultValue = '#' + data.defaultValue;
    557557                        }
     558                                else {
     559                                        defaultValue = data.defaultValue;
     560                                }
    558561                        defaultValue = ' data-default-color=' + defaultValue; // Quotes added automatically.
    559562                } #>
    560563                <label>