[wp-trac] [WordPress Trac] #38342: Quick Draft: Leverage REST API endpoints
WordPress Trac
noreply at wordpress.org
Fri Oct 28 00:37:13 UTC 2016
#38342: Quick Draft: Leverage REST API endpoints
--------------------------------+-------------------------
Reporter: adamsilverstein | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.7
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: REST-API has-patch | Focuses: javascript
--------------------------------+-------------------------
Comment (by adamsilverstein):
Replying to [comment:29 rachelbaker]:
> @adamsilverstein I am interested in your thoughts around the
`wp_dashboard_recent_drafts()` function. Looking at
[attachment:38342-4.diff] the echoing output here seems out of place in a
php function. Any concern about the back-compat break of losing the
`'dashboard_recent_drafts_query_args'` filter?
Good point @rachelbaker, I missed the removal of the filter. I think we
would need to add that existing filter via a callback on a rest api
filter, similar to what I am doing for Press This.
With the goal of achieving something to demonstrate best practices of
working with the API endpoints in core, I would like to propose we start
with a much simpler patch that only seeks to replace the post action of
the form with an API callback, then I think we can continue refining the
draft post list part in 4.8, and trying to address some of the issues that
we have run into with dates and backwards compatibility.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38342#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list