[wp-trac] [WordPress Trac] #39451: Javascript error when link_manager_enabled ( WP_Widget_Links) and theme supports customize-selective-refresh-widgets

WordPress Trac noreply at wordpress.org
Sun Dec 3 17:48:09 UTC 2017


#39451: Javascript error when link_manager_enabled ( WP_Widget_Links) and theme
supports customize-selective-refresh-widgets
--------------------------+-----------------------------
 Reporter:  nikeo         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Customize     |     Version:  4.5
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  javascript
--------------------------+-----------------------------
Changes (by dlh):

 * keywords:  needs-patch => has-patch


Comment:

 `WP_Widget_Links::widget()` contains a `preg_replace()` for the `id`
 attribute that also seems to be affecting the `data-customize-partial-id`
 attribute, creating the "illegal id." The fix might be as straightforward
 as adjusting the regex pattern, which I've tried in
 [attachment:39451.diff].

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


More information about the wp-trac mailing list