[wp-trac] [WordPress Trac] #7818: Require new filter hook for sidebars_widgets array

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 1 18:29:10 GMT 2008

#7818: Require new filter hook for sidebars_widgets array
 Reporter:  gortsleigh   |       Owner:  anonymous            
     Type:  enhancement  |      Status:  new                  
 Priority:  normal       |   Milestone:  2.7                  
Component:  General      |     Version:  2.6.1                
 Severity:  normal       |    Keywords:  widget filter reorder
 We need to alter the order of widgets on a sidebar based on a user
 preference.  There is currently no hook available to affect the ordering
 of widgets.

 Please add a new hook for the $sidebars_widgets array, as shown in the
 following 2.6.2 Wordpress code

 File is wp-includes/widgets.php
 Index: widgets.php
 --- widgets.php (revision 658)
 +++ widgets.php (working copy)
 @@ -361,6 +361,7 @@


 +       $sidebars_widgets = apply_filters('sidebars_widgets',
         return $sidebars_widgets;


Ticket URL: <http://trac.wordpress.org/ticket/7818>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list