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

WordPress Trac noreply at wordpress.org
Wed Nov 23 01:53:41 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:  accessibility,
  needs-unit-tests                   |  javascript, rest-api
-------------------------------------+-------------------------------------

Comment (by adamsilverstein):

 In [attachment:38342.15.diff] :

 * Added calls to wp.a11y.speak() for success and failure when adding a
 draft. (not sure why but I didn't hear failures in voiceover/chrome
 although the code executed).
 * Added some QUnit tests for `wp.formatting.trimWords()`, based on out
 phpunit tests for `wp_trim_words`, I only left out the tag and style
 removal tests as those don't apply here.
 * Clean up logic for showing View All link, using
 `this.collection.hasMore()`
 * Switched the error notice to use the alternate style and put it above
 the form.

 The error notice looks like this now:

 [[Image(https://cl.ly/433b1m3v2b3k/Dashboard__wpdev__WordPress_2016-11-22_19-48-40.jpg)]]

 I also cleaned up the inline docs a little and am going to continue
 working on that.

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


More information about the wp-trac mailing list