[wp-trac] [WordPress Trac] #32474: Facilitate widgets to be stored in posts instead of options
WordPress Trac
noreply at wordpress.org
Tue May 26 16:50:07 UTC 2015
#32474: Facilitate widgets to be stored in posts instead of options
------------------------------+--------------------------
Reporter: westonruter | Owner: westonruter
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.3
Component: Widgets | Version: 2.8
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+--------------------------
Changes (by westonruter):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"32602"]:
{{{
#!CommitTicketReference repository="" revision="32602"
Add support for `WP_Widget::get_settings()` returning
`ArrayIterator`/`ArrayObject` instances.
Plugins can use `pre_option_widget_{$id_base}` filters to return
`ArrayIterator`/`ArrayObject` instances instead of primitive arrays. This
makes possible for widget instance data to be drawn from somewhere else
than `wp_options`, such as a custom post type.
Add unit tests for widgets.
Fixes #32474.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32474#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list