[wp-trac] [WordPress Trac] #31897: Update Customizer nonces via Heartbeat API
WordPress Trac
noreply at wordpress.org
Sun Dec 6 21:23:33 UTC 2015
#31897: Update Customizer nonces via Heartbeat API
-------------------------+-------------------------
Reporter: westonruter | Owner:
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.5
Component: Customize | Version: 3.4
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: javascript
-------------------------+-------------------------
Changes (by mikeschroder):
* keywords: has-patch => needs-patch
Comment:
Hi @joeyblake! Thanks for the patch.
Took a look with @azaozz -- this works, but it looks like it's only using
Heartbeat as a timer, rather than using the Heartbeat API to transfer the
nonce data. I'd suggest using that transport instead, since it will avoid
extra requests.
As a second note, it looks like this is running every 60 seconds. Since a
user shouldn't need nonces this often, you could change this so that it
doesn't check as often.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31897#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list