[wp-trac] [WordPress Trac] #24493: widget programming using the function checked inside form bug
WordPress Trac
noreply at wordpress.org
Wed Jun 5 21:50:58 UTC 2013
#24493: widget programming using the function checked inside form bug
--------------------------+------------------------------
Reporter: Frumph | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: 3.5.1
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by nofearinc):
Confirmed, I can reproduce it on Firefox.
There is a problem with the base_id while fetching widgets. In `wp-
includes/widgets.php` the `update_callback` function is fetching the
**$settings** array as an array with a single element (the widget ID) for
Chrome and 2 elements (widget ID + the literal `__i__`) on Firefox.
The `__i__` literal is set to widgets when the widget number is equal to
-1 (to avoid bad referencing for non-existing widget ID). `wp-
admin/js/widgets.js` is calling some replace functions over __i__ and it
is probably not handled correctly (maybe order of operations issue for
non-Webkit as widgets being saved before widget ID has been initialized).
Still looking at it, but apparently the __i__ string is causing a second
array to be fetched in `widgets.php` where one of the values is stored
there instead of in the original widget ID referred array.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24493#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list