mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Docs: Add filter docs for wp_refresh_nonces
Props chetan200891, slushman, dlh, netweb. Fixes #42777. git-svn-id: https://develop.svn.wordpress.org/trunk@42717 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3025,6 +3025,15 @@ function wp_ajax_heartbeat() {
|
||||
}
|
||||
|
||||
if ( 1 !== $nonce_state ) {
|
||||
/**
|
||||
* Filters the nonces to send to the editor.
|
||||
*
|
||||
* @since 4.3.0
|
||||
*
|
||||
* @param array|object $response The no-priv Heartbeat response object or array.
|
||||
* @param array $data An array of data passed via $_POST.
|
||||
* @param string $screen_id The screen id.
|
||||
*/
|
||||
$response = apply_filters( 'wp_refresh_nonces', $response, $data, $screen_id );
|
||||
|
||||
if ( false === $nonce_state ) {
|
||||
|
||||
Reference in New Issue
Block a user