関数 wp_auth_check()
2014/12/11
wp_auth_check()
定義ファイル :/blog/wp-includes/functions.php 23
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | /** * Check whether a user is still logged in, for the heartbeat. * * Send a result that shows a log-in box if the user is no longer logged in, * or if their cookie is within the grace period. * * @since 3.6.0 * * @param array|object $response The Heartbeat response object or array. * @return array|object $response The Heartbeat response object or array with 'wp-auth-check' * value set. */ function wp_auth_check( $response ) { $response['wp-auth-check'] = is_user_logged_in() && empty( $GLOBALS['login_grace_period'] ); return $response; } |