[wp-trac] [WordPress Trac] #24605: Pass widget ID as a third parameter to widget_text filter

WordPress Trac noreply at wordpress.org
Wed Jul 9 09:05:05 UTC 2014


#24605: Pass widget ID as a third parameter to widget_text filter
-------------------------+------------------------------
 Reporter:  namarpi      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Widgets      |     Version:  3.5.1
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------
Changes (by mikejolley):

 * keywords:  needs-patch => has-patch


Comment:

 I definitely see the benefit in being able to selectively filter text
 widgets.

 ID is passed through via:

 {{{
 $args['widget_id']
 }}}

 I've attached a quick patch above.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/24605#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list