PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 2.15.3
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v2.15.3
3.3.1 V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 2.10.1 All 138 releases
← All changes | includes/Core/Util/MailNotifier.php +3 -1 2.10.22.15.3 View file →
@@ -37,8 +37,10 @@
37 37
38 38 if (!is_wp_error($generatedPdf) && file_exists($generatedPdf)) {
39 39 $attachments[] = $generatedPdf;
40 40 $tempPdfLink = $generatedPdf;
41 + } else {
42 + Log::debug_log('Error in generating PDF: ' . $generatedPdf->get_error_message());
41 43 }
42 44 }
43 45 }
44 46
@@ -155,9 +157,9 @@
155 157 }
156 158 }
157 159
158 160 if (!empty($tempPdfLink)) {
159 - unlink($tempPdfLink);
161 + wp_delete_file($tempPdfLink);
160 162 }
161 163 }
162 164
163 165 public static function filterMailContentType()