#37478 closed defect (bug) (fixed)
Customizer undefined property if widget area before/after values are empty
| Reported by: | Clorith | Owned by: | westonruter |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.6 |
| Component: | Customize | Version: | 4.6 |
| Severity: | normal | Keywords: | has-patch needs-testing |
| Cc: | Focuses: | javascript |
Description
Introduced in r37322 the replace on widgetClasses casts a TypeError if all the before_widget, after_widget, before_title and after_title fields are declared as an empty string in a theme when registering a widget area through register_sidebar
A quick example registration;
<?php register_sidebar( array( 'name' => __( 'Sidebar' ), 'id' => 'sidebar-1', 'before_widget' => '', 'after_widget' => '', 'before_title' => '', 'after_title' => '', ) );
As reported by @stevengliebe in https://wordpress.org/support/topic/customizer-js-error-when-register_sidebar-beforeafter-arguments-empty
Attachments (1)
Change History (6)
#1
@
10 years ago
- Keywords has-patch needs-testing added
- Milestone Awaiting Review → 4.6
- Owner set to
- Status new → accepted
This ticket was mentioned in Slack in #core-customize by ocean90. View the logs.
10 years ago
This ticket was mentioned in Slack in #core-customize by westonruter. View the logs.
10 years ago
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
@stevengliebe Please give 37478.0.diff a try.