[wp-trac] [WordPress Trac] #15373: wp_list_widgets function has no parameters, but documentation says contrary

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 10 12:18:22 UTC 2010


#15373: wp_list_widgets function has no parameters, but documentation says contrary
--------------------------+-------------------------------------------------
 Reporter:  jottlieb      |       Owner:                          
     Type:  defect (bug)  |      Status:  new                     
 Priority:  normal        |   Milestone:  Awaiting Review         
Component:  Widgets       |     Version:  3.0.1                   
 Severity:  minor         |    Keywords:  widgets, wp_list_widgets
--------------------------+-------------------------------------------------
 The documentation of the function '''wp_list_widgets''' tells us:

 {{{
 /**
  * Display list of the available widgets, either all or matching search.
  *
  * The search parameter are search terms separated by spaces.
  *
  * @since unknown
  *
  * @param string $show Optional, default is all. What to display, can be
 'all', 'unused', or 'used'.
  * @param string $_search Optional. Search for widgets. Should be
 unsanitized.
  */
 function wp_list_widgets() {
 }}}

 But in the function, these parameters are never read or used. So you can't
 search for a special widget.

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


More information about the wp-trac mailing list