Docs: Add filter docs for wp_refresh_nonces

Props chetan200891, slushman, dlh, netweb.
Fixes #42777.


Built from https://develop.svn.wordpress.org/trunk@42717


git-svn-id: http://core.svn.wordpress.org/trunk@42545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Konstantin Obenland 2018-02-17 04:42:33 +00:00
parent e50b9c943f
commit 3f7a8aac6b
2 changed files with 10 additions and 1 deletions

View File

@ -3025,6 +3025,15 @@ function wp_ajax_heartbeat() {
} }
if ( 1 !== $nonce_state ) { 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 ); $response = apply_filters( 'wp_refresh_nonces', $response, $data, $screen_id );
if ( false === $nonce_state ) { if ( false === $nonce_state ) {

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.0-alpha-42716'; $wp_version = '5.0-alpha-42717';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.