[wp-hackers] widget select field problems?

Jordi Canals jordi at jcanals.net
Tue Aug 4 00:31:28 UTC 2009

The old widget functions to register/unregister widgets and the way widgets
are managed, have changed in 2.8. The old functions are now deprecated and
the recommended way to manage widgets is by using the new WP_Widget class. I
moved all my widgets to the new class, and it makes easiest to write new
widgets, make them multi-instance, and works really fine.

The only problem with the drop-downs, is that the field name and field id
are different in widget control and the drop-down functions make it the
same. I had to make my categories select by hand just because of that.

Jordi Canals

2009/8/4 Stephanie Leary <steph at sillybean.net>

> Anyone else noticing problems with select boxes in widgets? After I save
> changes, my options are displayed as text rather than option fields, like
> so:
> http://sillybean.net/downloads/widget-before-after.png
> The values are stored correctly, but you can't make any further changes
> without reloading the widget admin page. Select boxes generated by WP
> functions (like wp_dropdown_categories or wp_dropdown_pages) don't seem to
> be affected, but hand-coded ones are -- although I can't see a difference in
> their HTML structures.
> Observed in 2.8.2 and 2.8.3 in my plugins and others'... and I don't see a
> bug on it in Trac. Am I going nuts, or is this a bug?
> Stephanie Leary
> sillybean.net
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list