wpsc_is_fatal_error()
No Hooks.
Returns
null. Nothing (null).
Usage
wpsc_is_fatal_error();
wpsc_is_fatal_error() wpsc is fatal error code WPSCache 3.1.1
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;
}