[wp-trac] [WordPress Trac] #37993: jQuery Syntax Error when not adding a class in 'before_widget'

WordPress Trac noreply at wordpress.org
Thu Sep 8 15:20:26 UTC 2016


#37993: jQuery Syntax Error when not adding a class in 'before_widget'
--------------------------+-----------------------------
 Reporter:  acosmin       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Customize     |    Version:  4.6
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 If you remove the `widget` class (or if you don't add a class) in
 `'before_widget' => '<section id="%1$s" class="widget %2$s">'`, when using
 `register_sidebar()` you get a jQuery Syntax Error in the Customizer.

 {{{jquery.js?ver=1.12.4:2 Uncaught Error: Syntax error, unrecognized
 expression: SECTION.,SECTION.widget,SECTION.widget}}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37993>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list