[wp-trac] [WordPress Trac] #38342: Quick Draft: Leverage REST API endpoints

WordPress Trac noreply at wordpress.org
Tue Oct 18 13:54:22 UTC 2016


#38342: Quick Draft: Leverage REST API endpoints
-----------------------------+-----------------------------
 Reporter:  adamsilverstein  |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:
 Severity:  normal           |   Keywords:  needs-patch
  Focuses:  javascript       |
-----------------------------+-----------------------------
 If the REST API content endpoints were in core, how would we rebuild core
 features (like Quick Draft) to use it? I am opening this ticket to track
 work on converting the Quick Draft feature to using the REST API.

 The quick draft feature is a meta box on the Dashboard for creating draft
 posts:

 [[Image(https://cl.ly/0l1n311M3T1e/Dashboard__WordPress_Dev__WordPress_2016-10-18_09-37-07.jpg)]]

 Quick Draft currently uses a simple form to post to `post.php` and create
 a the draft. The goal of this ticket would be to switch this action to
 JavaScript and the REST API. In addition, we would switch the list of
 recent drafts below the form to load via the API and render dynamically as
 well as adding a progress indicator and confirmation/error message. Note
 that the form is already hidden if JavaScript isn't available.


 Aaron Rutley has already coded a POC version here:
 https://github.com/AaronRutley/quick-rest-draft

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38342>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list