/** * Trigger an error, but nicely, if need be. * * @param string $msg * * @return bool */ private static function trigger($msg) { self::$last_error = $msg; if (defined('WP_DEBUG') && WP_DEBUG) { echo "\nError found in:"; self::debugPrintCallingFunction(); trigger_error($msg, E_USER_WARNING); } return false; }
private static function trigger($msg) { self::$last_error = $msg; if (!self::$suppress_errors) { echo "\nError found in:"; self::debugPrintCallingFunction(); trigger_error($msg, E_USER_WARNING); } return false; }