[wp-trac] [WordPress Trac] #45113: Integrate compatibility related functions for the new editor

WordPress Trac noreply at wordpress.org
Thu Nov 22 17:27:59 UTC 2018


#45113: Integrate compatibility related functions for the new editor
-------------------------------------+-----------------------
 Reporter:  desrosj                  |       Owner:  pento
     Type:  task (blessed)           |      Status:  assigned
 Priority:  normal                   |   Milestone:  5.0
Component:  General                  |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------

Comment (by adamsilverstein):

 Note: to test  that nonce refreshes work i’m setting heartbeat frequency
 https://gist.github.com/adamsilverstein/4bfc76454656046b24f18b292da895f7
 and nonce expiration
 https://gist.github.com/adamsilverstein/cf39db696d242e6c1f2f7695442d7fc0
 to testing intervals…

 eg:

 i set nonce expiration to 25 and heartbeat to 15. with every other
 heartbeat i can check the wp-ajax response in console and verify a new wp-
 nonce (and wp_nonce :() are returned
 then in GB i click save draft or update and observe the reset request,
 ''verifying that the nonce included in the header is the same one that was
 returned from the heartbeat''

 then, i tried with the nonce expiration set to 25 and heartbeat set to 60
 after 30 seconds, i hit save and it failed (as expected) because the nonce
 was not valid any more and had not been refreshed
 the api responds `rest_cookie_invalid_nonce`

 to complete testing, i'm investigating how nonces are used in wp.media to
 ensure those are being refreshed as well.

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


More information about the wp-trac mailing list