GhostManSec
Server: LiteSpeed
System: Linux premium197.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: parhudrw (1725)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/parhudrw/ve.anqa.it/wp-content/plugins/depicter/vendor/averta/wordpress/src/Handler/Error.php
<?php
namespace Averta\WordPress\Handler;

class Error
{
	/**
     * Mark something as being incorrectly called.
     *
     * The current behavior is to trigger a user error if `WP_DEBUG` is true.
     *
     * @param string $function The function that was called.
     * @param string $message  A message explaining what has been done incorrectly.
     * @param string $version  The version of WordPress where the message was added.
    */
	public static function doingWrong( $function, $message, $version )
	{
		_doing_it_wrong( $function, $message, $version );
	}

	/**
	 * Generates a user-level error/warning/notice message
	 *
	 * The current behavior is to trigger a user error if `WP_DEBUG` is true.
	 *
	 * @param string $message  The designated error message for this error.
	 */
	public static function trigger( $message = '' )
	{
		if ( WP_DEBUG  ) {
			trigger_error( $message, E_USER_NOTICE );
		}
	}


}