Make WordPress Core

Ticket #42777: 42777-updated.diff

File 42777-updated.diff, 710 bytes (added by chetan200891, 7 years ago)

Updated patch based on PHPDocs coding standards alignment.

  • wp-admin/includes/ajax-actions.php

    diff --git a/wp-admin/includes/ajax-actions.php b/wp-admin/includes/ajax-actions.php
    index 8ced5d3..0918cd2 100644
    a b function wp_ajax_heartbeat() { 
    30883088        }
    30893089
    30903090        if ( 1 !== $nonce_state ) {
     3091                /**
     3092                 * Filters the nonces to send to the editor.
     3093                 *
     3094                 * @since 4.3.0
     3095                 *
     3096                 * @param array|object $response  The no-priv Heartbeat response object or array.
     3097                 * @param array        $data      An array of data passed via $_POST.
     3098                 * @param string       $screen_id The screen id.
     3099                 */
    30913100                $response = apply_filters( 'wp_refresh_nonces', $response, $data, $screen_id );
    30923101
    30933102                if ( false === $nonce_state ) {