[wp-trac] [WordPress Trac] #39070: WP-API JS client can't use getCategories for models returned by collections

WordPress Trac noreply at wordpress.org
Sun Dec 11 18:01:04 UTC 2016


#39070: WP-API JS client can't use getCategories for models returned by collections
-------------------------------------------------+-------------------------
 Reporter:  jesseenterprises                     |       Owner:
     Type:  defect (bug)                         |  adamsilverstein
 Priority:  normal                               |      Status:  assigned
Component:  REST API                             |   Milestone:  4.7.1
 Severity:  normal                               |     Version:  4.7
 Keywords:  has-patch needs-testing needs-unit-  |  Resolution:
  tests                                          |     Focuses:
                                                 |  javascript, rest-api
-------------------------------------------------+-------------------------

Comment (by adamsilverstein):

 I added some additional tests for this in https://github.com/WP-API
 /client-js/pull/148/files. I am still working on getting these tests
 integrated into the WordPress core testing suit. I did verify they fail
 before the attached patch and pass after it.

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


More information about the wp-trac mailing list