Make WordPress Core

Changeset 30087


Ignore:
Timestamp:
10/29/2014 02:42:35 AM (10 years ago)
Author:
johnbillion
Message:

Correct some logic to populate the defaultValue variable when data.defaultValue begins with a hash symbol.

Props antpb
Fixes #30125

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-control.php

    r30014 r30087  
    555555            if ( '#' !== data.defaultValue.substring( 0, 1 ) ) {
    556556                defaultValue = '#' + data.defaultValue;
     557            } else {
     558                defaultValue = data.defaultValue;
    557559            }
    558560            defaultValue = ' data-default-color=' + defaultValue; // Quotes added automatically.
Note: See TracChangeset for help on using the changeset viewer.