[wp-trac] [WordPress Trac] #38342: Quick Draft: Leverage REST API endpoints
WordPress Trac
noreply at wordpress.org
Tue Nov 22 20:17:05 UTC 2016
#38342: Quick Draft: Leverage REST API endpoints
---------------------------------+-----------------------------------
Reporter: adamsilverstein | Owner: joehoyle
Type: enhancement | Status: assigned
Priority: normal | Milestone: Future Release
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: has-patch 4.8-early | Focuses: javascript, rest-api
---------------------------------+-----------------------------------
Comment (by joehoyle):
Per @pento's note on verbosity, I added a new patch removing the custom
modal and collection for drafts - I instead just took the bit of
formatting code and put it in the ListItemView, and moved the order_by to
a REST API argument. I think this approach is nicer as it directly uses
`wp.api.models.Post` and `wp.api.collections.Posts` which is a better
showecase IMO.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38342#comment:60>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list