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

WordPress Trac noreply at wordpress.org
Wed Jan 4 01:08:26 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:
------------------------------------------+-----------------------------

Comment (by westonruter):

 As I just [https://core.trac.wordpress.org/ticket/33507#comment:21
 commented] on #33507:

 > I just released [https://github.com/xwp/wp-js-widgets JS Widgets] v0.2.0
 which includes JS-driven adaptations of all the core widgets (aside from
 Links), as well as a Post Collection bonus widget. Another standalone
 widget plugin called [https://github.com/xwp/wp-next-recent-posts-widget
 Next Recent Posts Widget] takes the concept of JS widgets a step further
 and uses client-side JS templating for rendering the widget as well,
 implementing instant updates to changes. In this widget, selective refresh
 used to obtain `rendered` REST API data, while the `raw` value is used
 until the `rendered` data is returned. So this means that when entering
 `--` into the widget's title will result in `--` appearing in the rendered
 widget while waiting for the server to return with `—` that `wptexturize`
 applies. In this way it behaves similarly to #33738.

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


More information about the wp-trac mailing list