[wp-trac] [WordPress Trac] #40422: REST API JavaScript Client: refresh nonce when a new nonce is available

WordPress Trac noreply at wordpress.org
Mon May 8 19:22:51 UTC 2017


#40422: REST API JavaScript Client: refresh nonce when a new nonce is available
-----------------------------+-------------------------
 Reporter:  adamsilverstein  |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  4.8
Component:  REST API         |     Version:  4.7
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |     Focuses:  javascript
-----------------------------+-------------------------

Comment (by adamsilverstein):

 Replying to [comment:2 rmccue]:
 > This is useful if you're sending API endpoint requests constantly, but
 not if you just leave the tab open in the background, which still needs
 heartbeat.

 Right, it is up the developer to decide to poll the API, this just picks
 up the refreshed nonce if available.

 >
 > (Also, your patch still has a console.log call in it. :) )

 removed :)

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


More information about the wp-trac mailing list