MagpieRSS::error() WordPress Method

The MagpieRSS::error() WordPress method is used to return an error message. This is useful for debugging purposes.

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


Source

File: wp-includes/rss.php

	function error( $errormsg, $lvl = E_USER_WARNING ) {
		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.