Ticket #6949 (closed defect: fixed)

Opened 2 months ago

Last modified 2 months ago

Widget IDs need to be made lowercase

Reported by: filosofo Assigned to: anonymous
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
Cc: filosofo

Description

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.

Attachments

widget_id.diff (0.7 kB) - added by filosofo on 05/09/08 15:47:04.

Change History

05/09/08 15:47:04 changed by filosofo

  • attachment widget_id.diff added.

05/09/08 16:29:18 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [7915]) strtolower widget id. Props filosofo. fixes #6949