rest_cookie_collect_status()

最后更新于:2021-11-27 23:34:01

rest_cookie_collect_status()

Collects cookie authentication status.

源文件

文件: gc-includes/rest-api.php

function rest_cookie_collect_status() {
	global $gc_rest_auth_cookie;

	$status_type = current_action();

	if ( 'auth_cookie_valid' !== $status_type ) {
		$gc_rest_auth_cookie = substr( $status_type, 12 );
		return;
	}

	$gc_rest_auth_cookie = true;
}