Opened 16 years ago
Closed 16 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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | Themes | Version: | |
| Severity: | trivial | Keywords: | has-patch |
| Cc: | Focuses: |
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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This widget factory code makes my eyes glaze over. (And I wrote it.) I'm making this a filter.