[wp-trac] [WordPress Trac] #37174: class-wp-customize-color-control.php fails when data.defaultValue is empty

WordPress Trac noreply at wordpress.org
Thu Aug 10 14:26:02 UTC 2017


#37174: class-wp-customize-color-control.php fails when data.defaultValue is empty
-------------------------------------+-------------------------------------
 Reporter:  andreagobetti            |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Customize                |     Version:  4.5.3
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch reporter-      |     Focuses:  javascript,
  feedback                           |  administration, template
-------------------------------------+-------------------------------------

Comment (by yonivh):

 I had the same issue which gave me a "Uncaught TypeError:
 data.defaultValue.substring is not a function" console notice which broke
 the customizer. Adding the length check fixed it for me.

 I can confirm the 'Palmas' theme produced this problem for me. After
 switching to another theme, the customizer worked just fine.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37174#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list