From 3f7a8aac6b766b86fde883e72979f980a1fb3802 Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Sat, 17 Feb 2018 04:42:33 +0000 Subject: [PATCH] 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 --- wp-admin/includes/ajax-actions.php | 9 +++++++++ wp-includes/version.php | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/ajax-actions.php b/wp-admin/includes/ajax-actions.php index ab521ba0ad..7945bc4157 100644 --- a/wp-admin/includes/ajax-actions.php +++ b/wp-admin/includes/ajax-actions.php @@ -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 ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index b4f17c1a41..46aa5cf74f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @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.