Make WordPress Core

Changes between Version 32 and Version 33 of Ticket #37964


Ignore:
Timestamp:
10/05/2017 03:47:09 PM (9 years ago)
Author:
westonruter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37964 – Description

    v32 v33  
    44
    55{{{#!js
    6 var control = new wp.customize.Control( 'product_color', {
    7     type: 'color',
     6var control = new wp.customize.Control( 'product_name', {
     7    // ...
    88    settings: {
    9         'default': new wp.customize.Value( '#000000' )
     9        'default': new wp.customize.Value( 'Something' )
    1010    }
    1111} );
     
    1515
    1616{{{#!js
    17 wp.customize.create( 'product_color', 'product_color', '#000000', {} );
    18 control = new wp.customize.Control( 'product_color', {
    19     type: 'color',
    20     params: {
    21         settings: {
    22             'default': 'product_color'
    23         }
     17wp.customize.create( 'product_name', 'product_name', 'Something', {} );
     18control = new wp.customize.Control( 'product_name', {
     19    // ...
     20    settings: {
     21        'default': 'product_name'
    2422    }
    2523} );