RSSCache::error()publicWP 1.0

Method of the class: RSSCache{}

No Hooks.

Returns

null. Nothing (null).

Usage

$RSSCache = new RSSCache();
$RSSCache->error ( $errormsg, $lvl );
$errormsg (required)
-
$lvl **
-
Default: E_USER_WARNING

RSSCache::error() code WP 6.8.1

function error ($errormsg, $lvl=E_USER_WARNING) {
	$this->ERROR = $errormsg;
	if ( MAGPIE_DEBUG ) {
		wp_trigger_error( '', $errormsg, $lvl);
	}
	else {
		error_log( $errormsg, 0);
	}
}