RSSCache::error() WordPress Method

The RSSCache::error() method is used to return an error message for the RSSCache class. This is useful for debugging purposes.

RSSCache::error( $errormsg,  $lvl = E_USER_WARNING ) #


Source

File: wp-includes/rss.php

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

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.