[wp-trac] [WordPress Trac] #15550: WP_Nav_Menu_Widget needs a filter for args

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 13 08:34:07 UTC 2011


#15550: WP_Nav_Menu_Widget needs a filter for args
-------------------------------------------------+-------------------------
 Reporter:  brodock                              |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Widgets                              |  Release
 Severity:  normal                               |     Version:  3.1
 Keywords:  widget nav_menu filter hook needs-   |  Resolution:
  patch                                          |
-------------------------------------------------+-------------------------
Changes (by mdawaffe):

 * keywords:  widget nav_menu filter hook => widget nav_menu filter hook
     needs-patch
 * milestone:  Awaiting Review => Future Release


Comment:

 How about we change

 {{{
 $instance = apply_filters('widget_display_callback', $instance, $this,
 $args);
 ...
 do_action( 'the_widget', $widget, $instance, $args );
 }}}

 to use {{{apply_filters_ref_array()}}} and {{{do_action_ref_array()}}}.
 Or maybe better: add a new ref_array action near those points.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15550#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list