PluginProbe
Depicter — Popup & Slider Builder / 1.6.2
Depicter — Popup & Slider Builder v1.6.2
4.8.1 trunk 1.0.0 1.1.0 1.1.2 1.1.4 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.5 1.3.8 1.5.0 1.5.1 1.5.2 1.5.5 1.6.0 1.6.1 1.6.2 1.7.0 All 76 releases
depicter / vendor / averta / wordpress / src / Handler / Error.php

Error.php in Depicter — Popup & Slider Builder 1.6.2, at vendor/averta/wordpress/src/Handler/Error.php

36 lines 920 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Averta\WordPress\Handler;
3
4 class Error
5 {
6 /**
7 * Mark something as being incorrectly called.
8 *
9 * The current behavior is to trigger a user error if `WP_DEBUG` is true.
10 *
11 * @param string $function The function that was called.
12 * @param string $message A message explaining what has been done incorrectly.
13 * @param string $version The version of WordPress where the message was added.
14 */
15 public static function doingWrong( $function, $message, $version )
16 {
17 _doing_it_wrong( $function, $message, $version );
18 }
19
20 /**
21 * Generates a user-level error/warning/notice message
22 *
23 * The current behavior is to trigger a user error if `WP_DEBUG` is true.
24 *
25 * @param string $message The designated error message for this error.
26 */
27 public static function trigger( $message = '' )
28 {
29 if ( WP_DEBUG ) {
30 trigger_error( $message, E_USER_NOTICE );
31 }
32 }
33
34
35 }
36