Opened 3 years ago
Last modified 2 years ago
#14876 reopened defect (bug)
wp_get_sidebars_widgets() assumes that widgets are enabled
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | lowest | Milestone: | Future Release |
| Component: | Widgets | Version: | |
| Severity: | minor | Keywords: | |
| Cc: |
Description
When a theme does not have any sidebars defined, wp_get_sidebars_widgets() will return the database option anyway.
This reveals a bug where a theme that does not have any widgets may still get the recent comments CSS injected into it. is_active_widget() is returning true because that widget was active when the sidebar option was last used.
Change History (5)
- Resolution fixed deleted
- Status changed from closed to reopened
Note: See
TracTickets for help on using
tickets.

(In [15994]) Return empty array in wp_get_sidebars_widgets() if no sidebars are defined. fixes #14876.