Opened 9 years ago
Closed 9 years ago
#35928 closed defect (bug) (fixed)
Notice in `is_dynamic_sidebar()`
Reported by: | dlh | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Widgets | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
A sidebar can be registered but not yet have an index in the sidebars_widgets
option.
is_dynamic_sidebar()
checks count($sidebars_widgets[$index])
for each registered sidebar, potentially, but if it reaches a sidebar that doesn't have an index in the option, it generates an "undefined index" notice.
The attached patch adds an isset()
check.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
In 36667: