rest_cookie_collect_status

The timeline below displays how wordpress function rest_cookie_collect_status has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 4.4

/**
 * Collects cookie authentication status.
 *
 * Collects errors from wp_validate_auth_cookie for use by rest_cookie_check_errors.
 *
 * @since 4.4.0
 *
 * @see current_action()
 * @global mixed $wp_rest_auth_cookie
 */
function rest_cookie_collect_status()
{
    global $wp_rest_auth_cookie;
    $status_type = current_action();
    if ('auth_cookie_valid' !== $status_type) {
        $wp_rest_auth_cookie = substr($status_type, 12);
        return;
    }
    $wp_rest_auth_cookie = true;
}