#42226 closed defect (bug) (fixed)
Normalise access widget_title in WP_Widget_Media
| Reported by: | Bsop | Owned by: | westonruter |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.9 |
| Component: | Widgets | Version: | 4.8 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | template |
Description
It seems that in most default widgets, the filter widget_title is always available, even if the user did not provide a title. In the abstract class WP_Widget_Media however, this is not the case, the apply_filters function will only be called if a title property exists in $instance. This is of course impractical when one wants to apply a hook callback to all default widget titles.
Attachments (2)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
patch