[wp-trac] [WordPress Trac] #43265: REST API JS Client: Extend custom nonce functionality to collections

WordPress Trac noreply at wordpress.org
Thu Feb 8 20:33:09 UTC 2018


#43265: REST API JS Client: Extend custom nonce functionality to collections
--------------------------+-----------------------------
 Reporter:  ocean90       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  REST API      |    Version:  4.9
 Severity:  normal        |   Keywords:  has-patch
  Focuses:  javascript    |
--------------------------+-----------------------------
 This is a follow-up to #40422.

 Since [41553] a custom nonce can be passed to an API client. But when
 requesting a collection the nonce isn't used because `WPApiBaseCollection`
 is still using `wpApiSettings.nonce`. Chatted with @adamsilverstein and it
 seems to be an oversight.

 Attached an initial patch.

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


More information about the wp-trac mailing list