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

WordPress Trac noreply at wordpress.org
Sun Apr 23 22:26:01 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 wonderboymusic):

 why is this so coupled to the potential transport mechanism? your first
 approach was sufficient in its idea - setting default props for the widget
 instance.

 seems like a Widget instance that can return its props passed to a REST
 decorator would avoid tight coupling

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


More information about the wp-trac mailing list