Ticket #26185: 26185.wp_auth_check.diff
File 26185.wp_auth_check.diff, 611 bytes (added by , 11 years ago) |
---|
-
wp-includes/functions.php
4347 4347 * or if their cookie is within the grace period. 4348 4348 * 4349 4349 * @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. 4350 4353 */ 4351 4354 function wp_auth_check( $response ) { 4352 4355 $response['wp-auth-check'] = is_user_logged_in() && empty( $GLOBALS['login_grace_period'] );