Opened 14 years ago
Closed 14 years ago
#15493 closed defect (bug) (fixed)
Twenty Ten: twentyten_remove_recent_comments_style() throws notice when Recent Comments not in use
Reported by: | kawauso | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | trivial | Version: | |
Component: | Themes | Keywords: | has-patch |
Focuses: | Cc: |
Description
twentyten_remove_recent_comments_style()
uses $wp_widget_factory->widgets['WP_Widget_Recent_Comments']
, but this is not present when the Recent Comments widget is not in use and the user cannot modify widgets, resulting in an undefined index.
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
This widget factory code makes my eyes glaze over. (And I wrote it.) I'm making this a filter.