[wp-trac] [WordPress Trac] #36473: JavaScript error in theme customizer a specific value of before_widget

WordPress Trac noreply at wordpress.org
Mon Apr 11 22:18:25 UTC 2016


#36473: JavaScript error in theme customizer a specific value of before_widget
--------------------------+------------------------------
 Reporter:  martin.krcho  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Customize     |     Version:  3.9
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  ui
--------------------------+------------------------------
Changes (by westonruter):

 * version:  4.4.2 => 3.9


Comment:

 The code for `buildWidgetSelectors` has been in place since 3.9.

 @martin.krcho could you please share the `register_sidebar()` calls that
 the theme has?

 You're right that a problem here is that `String.replace()` will only
 replace the first instance if the replacement arg is a string instead of a
 regular expression. So changing the pattern it to be a regular expression
 instead of string should do it, but I want to see how the sidebars are
 registered to see what is going on.

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


More information about the wp-trac mailing list