[buddypress-trac] [BuddyPress Trac] #6222: Audit filters in core widgets to ensure they meet WordPress expectations

buddypress-trac noreply at wordpress.org
Fri Feb 13 14:46:06 UTC 2015


#6222: Audit filters in core widgets to ensure they meet WordPress expectations
---------------------------------+-------------------------
 Reporter:  dcavins              |      Owner:
     Type:  defect (bug)         |     Status:  new
 Priority:  normal               |  Milestone:  2.3
Component:  Component - Any/All  |    Version:  2.2
 Severity:  minor                |   Keywords:  needs-patch
---------------------------------+-------------------------
 Bowe pointed out via Slack that he was having trouble applying the filter
 `widget_title` to the BP members widget.

 The problem is that that widget isn't providing the expected parameters to
 the filter.

 From BP members widget:
 `$title = apply_filters( 'widget_title', $instance['title'] );`

 The parameters expected in `widget_title` are
 `$title = apply_filters( 'widget_title', $instance['title'], $instance,
 $this->id_base );`

 I'd be happy to complete the audit and write patches if someone will
 assign it to me.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6222>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list