Make WordPress Core

Ticket #26185: 26185.wp_auth_check.diff

File 26185.wp_auth_check.diff, 611 bytes (added by morganestes, 11 years ago)

Added parameter and return tags to wp_auth_check().

  • wp-includes/functions.php

     
    43474347 * or if their cookie is within the grace period.
    43484348 *
    43494349 * @since 3.6.0
     4350 *
     4351 * @param array|object $response  The Heartbeat response object or array.
     4352 * @return array|object $response The Heartbeat response object or array with 'wp-auth-check' value set.
    43504353 */
    43514354function wp_auth_check( $response ) {
    43524355        $response['wp-auth-check'] = is_user_logged_in() && empty( $GLOBALS['login_grace_period'] );