[wp-trac] [WordPress Trac] #42226: Normalise access widget_title in WP_Widget_Media

WordPress Trac noreply at wordpress.org
Sun Oct 15 07:33:12 UTC 2017


#42226: Normalise access widget_title in WP_Widget_Media
--------------------------+-----------------------------
 Reporter:  Bsop          |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Widgets       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:  template      |
--------------------------+-----------------------------
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42226>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list