[wp-trac] [WordPress Trac] #35574: Add REST API JSON schema information to WP_Widget

WordPress Trac noreply at wordpress.org
Tue May 10 04:02:44 UTC 2016


#35574: Add REST API JSON schema information to WP_Widget
------------------------------------------+------------------
 Reporter:  westonruter                   |       Owner:
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  4.6
Component:  Widgets                       |     Version:  2.8
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+------------------

Comment (by westonruter):

 Here's what I've put together for a schema for widget instances:

 * Recent Posts widget: https://github.com/xwp/wp-js-
 widgets/blob/fd8c3c46968983d45da2478bb7ba8c69fd856092/php/widgets/class-
 wp-js-widget-recent-posts.php#L83-L144
 * Text widget: https://github.com/xwp/wp-js-
 widgets/blob/fd8c3c46968983d45da2478bb7ba8c69fd856092/php/widgets/class-
 wp-js-widget-text.php#L66-L130

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35574#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list