Make WordPress Core

Opened 5 years ago

Last modified 2 years ago

#31897 assigned enhancement

Update Customizer nonces via Heartbeat API — at Initial Version

Reported by: westonruter Owned by:
Milestone: Future Release Priority: low
Severity: normal Version: 3.4
Component: Customize Keywords: needs-unit-tests needs-refresh has-patch
Focuses: javascript Cc:


Currently the Customizer's nonces get updated when the preview gets refreshed (only the save and preview nonces, not the update-widget nonce, however). If the user leaves the window open in the background for a long time, they will get stale nonces. We should be using the Heartbeat API and the wp_ajax_customize_refresh_nonces filter introduced in #31294 to keep the nonces up date.

See also #31436 where Heartbeat integration will also be required to handle Customizer concurrency issues.

Change History (0)

Note: See TracTickets for help on using tickets.