wpsc_is_fatal_error()WPSCache 1.0

No Hooks.

Return

null. Nothing.

Usage

wpsc_is_fatal_error();

Code of wpsc_is_fatal_error() WPSCache 1.9

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;
}