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

Props antpb
Fixes #30125

Built from https://develop.svn.wordpress.org/trunk@30087


git-svn-id: http://core.svn.wordpress.org/trunk@30087 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2014-10-29 02:43:22 +00:00
parent 4013156e51
commit d70744e95c
2 changed files with 3 additions and 1 deletions

View File

@ -554,6 +554,8 @@ class WP_Customize_Color_Control extends WP_Customize_Control {
if ( data.defaultValue ) {
if ( '#' !== data.defaultValue.substring( 0, 1 ) ) {
defaultValue = '#' + data.defaultValue;
} else {
defaultValue = data.defaultValue;
}
defaultValue = ' data-default-color=' + defaultValue; // Quotes added automatically.
} #>

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.1-alpha-30086';
$wp_version = '4.1-alpha-30087';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.