Docs: Correct the parameter docs for various Heartbeat filters and functions.

See #32246

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


git-svn-id: http://core.svn.wordpress.org/trunk@36198 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2016-01-09 01:37:26 +00:00
parent 7931478595
commit 7718e07129
3 changed files with 27 additions and 8 deletions

View File

@ -2706,7 +2706,7 @@ function wp_ajax_heartbeat() {
*
* @since 3.6.0
*
* @param array|object $response The Heartbeat response object or array.
* @param array $response The Heartbeat response.
* @param array $data The $_POST data sent.
* @param string $screen_id The screen id.
*/
@ -2718,7 +2718,7 @@ function wp_ajax_heartbeat() {
*
* @since 3.6.0
*
* @param array|object $response The Heartbeat response object or array.
* @param array $response The Heartbeat response.
* @param string $screen_id The screen id.
*/
$response = apply_filters( 'heartbeat_send', $response, $screen_id );
@ -2730,7 +2730,7 @@ function wp_ajax_heartbeat() {
*
* @since 3.6.0
*
* @param array|object $response The Heartbeat response object or array.
* @param array $response The Heartbeat response.
* @param string $screen_id The screen id.
*/
do_action( 'heartbeat_tick', $response, $screen_id );

View File

@ -729,6 +729,11 @@ function _ipad_meta() {
* Check lock status for posts displayed on the Posts screen
*
* @since 3.6.0
*
* @param array $response The Heartbeat response.
* @param array $data The $_POST data sent.
* @param string $screen_id The screen id.
* @return array The Heartbeat response.
*/
function wp_check_locked_posts( $response, $data, $screen_id ) {
$checked = array();
@ -759,6 +764,11 @@ function wp_check_locked_posts( $response, $data, $screen_id ) {
* Check lock status on the New/Edit Post screen and refresh the lock
*
* @since 3.6.0
*
* @param array $response The Heartbeat response.
* @param array $data The $_POST data sent.
* @param string $screen_id The screen id.
* @return array The Heartbeat response.
*/
function wp_refresh_post_lock( $response, $data, $screen_id ) {
if ( array_key_exists( 'wp-refresh-post-lock', $data ) ) {
@ -797,6 +807,11 @@ function wp_refresh_post_lock( $response, $data, $screen_id ) {
* Check nonce expiration on the New/Edit Post screen and refresh if needed
*
* @since 3.6.0
*
* @param array $response The Heartbeat response.
* @param array $data The $_POST data sent.
* @param string $screen_id The screen id.
* @return array The Heartbeat response.
*/
function wp_refresh_post_nonces( $response, $data, $screen_id ) {
if ( array_key_exists( 'wp-refresh-post-nonces', $data ) ) {
@ -850,6 +865,10 @@ function wp_heartbeat_set_suspension( $settings ) {
* Autosave with heartbeat
*
* @since 3.9.0
*
* @param array $response The Heartbeat response.
* @param array $data The $_POST data sent.
* @return array The Heartbeat response.
*/
function heartbeat_autosave( $response, $data ) {
if ( ! empty( $data['wp_autosave'] ) ) {

View File

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