[wp-trac] [WordPress Trac] #38343: Press This: Leverage REST API endpoints
WordPress Trac
noreply at wordpress.org
Tue Oct 18 14:24:55 UTC 2016
#38343: Press This: Leverage REST API endpoints
-----------------------------+-----------------------------
Reporter: adamsilverstein | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: javascript |
-----------------------------+-----------------------------
If the REST API content endpoints were in core, how would we rebuild core
features (like Press This) to use it? I am opening this ticket to track
work on converting the Press This feature to using the REST API.
Press This is a compact JavaScript App available under tools that can be
launched from the Dashboard, or from a browser's bookmarks/bookmark bar:
[[Image(https://cl.ly/0u1F2Y1z2e0r/Press_This_2016-10-18_09-57-10.jpg)]]
Press This communicates with WordPress via custom wp-ajax endpoints as
well as by submitting form data directly to `post.php` via ajax mirroring
what the wp post editor does. The goal here would be to switch all server
interactions over to using the REST API:
* Saving posts in `submitPost`, include handling to redirect the user (to
the login page) similar to current code
* Creating new categories in `saveNewCategory`
I've started work on this locally and will post a POC soon!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38343>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list