wpsc_is_fatal_error()WPSCache 1.0

No Hooks.

Return

null. Nothing (null).

Usage

wpsc_is_fatal_error();

wpsc_is_fatal_error() code WPSCache 1.12.0

function wpsc_is_fatal_error() {
	global $wp_super_cache_query;

	if ( null === ( $error = error_get_last() ) ) {
		return false;
	}

	if ( $error['type'] & ( E_ERROR | E_CORE_ERROR | E_PARSE | E_COMPILE_ERROR | E_USER_ERROR ) ) {
		$wp_super_cache_query['is_fatal_error'] = 1;
		return true;
	}

	return false;
}