[wp-trac] [WordPress Trac] #6949: Widget IDs need to be made lowercase

WordPress Trac wp-trac at lists.automattic.com
Fri May 9 15:46:54 GMT 2008


#6949: Widget IDs need to be made lowercase
----------------------+-----------------------------------------------------
 Reporter:  filosofo  |       Owner:  anonymous                                                                                      
     Type:  defect    |      Status:  new                                                                                            
 Priority:  normal    |   Milestone:  2.6                                                                                            
Component:  General   |     Version:                                                                                                 
 Severity:  normal    |    Keywords:  has-patch wp_get_sidebars_widgets wp_register_sidebar_widget wp_register_widget_control widgets
----------------------+-----------------------------------------------------
 I've been beating my head against a wall trying to figure out why my
 multi-widget refused to save.  It turns out that it was because I was
 using !camelCase in the id argument of the wp_register_sidebar_widget
 function call. wp_get_sidebars_widgets checks whether the name matches the
 strtolower version of itself, so without my patch, an id of varied case
 will fail the check every time.

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


More information about the wp-trac mailing list