[wp-trac] [WordPress Trac] #31897: Update Customizer nonces via Heartbeat API

WordPress Trac noreply at wordpress.org
Sun Apr 5 23:24:08 UTC 2015


#31897: Update Customizer nonces via Heartbeat API
--------------------------+----------------------------
 Reporter:  westonruter   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Future Release
Component:  Customize     |    Version:  3.4
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:  javascript    |
--------------------------+----------------------------
 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.

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


More information about the wp-trac mailing list