[wp-trac] [WordPress Trac] #31897: Update Customizer nonces via Heartbeat API
WordPress Trac
noreply at wordpress.org
Wed Feb 24 14:36:36 UTC 2016
#31897: Update Customizer nonces via Heartbeat API
-------------------------+-----------------------------
Reporter: westonruter | Owner: voldemortensen
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.5
Component: Customize | Version: 3.4
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: javascript
-------------------------+-----------------------------
Comment (by joeyblake):
Sorry for the radio silence. Here is the issue that I've had with this
ticket. I'm definitely missing something, and maybe someone else can see
where.
My inclination when adding the filter to 'heartbeat_received' to refresh
the nonces would be to have the logic and filter inside class-wp-
customize-manager.php. However, when adding the filter there, it never
gets executed.
If I were to move the filter out of there, to admin-filters.php it will
execute, but admin-filters.php has no knowledge of WP_Customize_Manager,
or the instantiated global at all. So I calling a method inside of there
to retrieve the updated nonces is not possible.
I'm currently running adding data to the heartbeat-send event from the
api.Previewer object in customize-controls.js
Is there anything obvious that I'm missing here?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31897#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list