[wp-trac] [WordPress Trac] #35574: Add REST API JSON schema information to WP_Widget
WordPress Trac
noreply at wordpress.org
Wed Apr 12 00:28:06 UTC 2017
#35574: Add REST API JSON schema information to WP_Widget
------------------------------------------+-----------------------------
Reporter: westonruter | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Widgets | Version: 2.8
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses: rest-api
------------------------------------------+-----------------------------
Comment (by westonruter):
The media widget is going ahead with
`WP_Widget_Media::get_instance_schema()` for now. If we introduce a
`WP_Widget::get_schema_for_properties()` method later on the base class,
then we can deprecate `WP_Widget_Media::get_instance_schema()` and make it
a wrapper for `WP_Widget::get_schema_for_properties()`.
See https://github.com/xwp/wp-core-media-widgets/pull/70
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35574#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list