PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | stripe/models/FrmTransLiteLog.php +9 -2 6.5.3 → trunk View file →
@@ -5,15 +5,22 @@
5 5
6 6 class FrmTransLiteLog {
7 7
8 8 /**
9 + * @since 6.12 The $is_error parameter was added.
10 + *
9 11 * @param string $title
10 12 * @param string $text
13 + * @param bool $is_error When this is false, the message will not be logged to the error log if the logging add-on is unavailable.
14 + *
11 15 * @return void
12 16 */
13 - public static function log_message( $title, $text ) {
17 + public static function log_message( $title, $text, $is_error = true ) {
14 18 if ( ! class_exists( 'FrmLog' ) ) {
15 - error_log( $title . ': ' . $text );
19 + if ( $is_error ) {
20 + error_log( $title . ': ' . $text );
21 + }
22 +
16 23 return;
17 24 }
18 25
19 26 $log = new FrmLog();