| @@ -17,8 +17,9 @@ | ||
| 17 | 17 | use BitCode\BitForm\Core\Integration\Integrations; |
| 18 | 18 | use BitCode\BitForm\Core\Util\IpTool; |
| 19 | 19 | use BitCode\BitForm\Core\Util\MailConfig; |
| 20 | 20 | use BitCode\BitForm\Core\Util\MetaBoxService; |
| 21 | +use BitCode\BitForm\Core\Util\Utilities; | |
| 21 | 22 | use BitCode\BitForm\Frontend\Form\FrontendFormManager; |
| 22 | 23 | use BitCode\BitForm\GlobalHelper; |
| 23 | 24 | use WP_Error; |
| 24 | 25 | |
| @@ -633,9 +634,9 @@ | ||
| 633 | 634 | } |
| 634 | 635 | |
| 635 | 636 | public function getEmailConfig() |
| 636 | 637 | { |
| 637 | - \ignore_user_abort(); | |
| 638 | + Utilities::ignoreUserAbort(); | |
| 638 | 639 | |
| 639 | 640 | if (isset($_REQUEST['_ajax_nonce']) && wp_verify_nonce(sanitize_text_field(wp_unslash($_REQUEST['_ajax_nonce'])), 'bitforms_save')) { |
| 640 | 641 | $this->verifyAdminPermission(); |
| 641 | 642 | $ipTool = new IpTool(); |
| @@ -662,9 +663,9 @@ | ||
| 662 | 663 | } |
| 663 | 664 | |
| 664 | 665 | public function saveEmailConfig() |
| 665 | 666 | { |
| 666 | - \ignore_user_abort(); | |
| 667 | + Utilities::ignoreUserAbort(); | |
| 667 | 668 | if (isset($_REQUEST['_ajax_nonce']) && wp_verify_nonce(sanitize_text_field(wp_unslash($_REQUEST['_ajax_nonce'])), 'bitforms_save')) { |
| 668 | 669 | $this->verifyAdminPermission(); |
| 669 | 670 | GlobalHelper::requirePostMethod(); |
| 670 | 671 | $ipTool = new IpTool(); |
| @@ -900,9 +901,9 @@ | ||
| 900 | 901 | * @return void |
| 901 | 902 | */ |
| 902 | 903 | public function updateForm() |
| 903 | 904 | { |
| 904 | - \ignore_user_abort(); | |
| 905 | + Utilities::ignoreUserAbort(); | |
| 905 | 906 | if (isset($_REQUEST['_ajax_nonce']) && wp_verify_nonce(sanitize_text_field(wp_unslash($_REQUEST['_ajax_nonce'])), 'bitforms_save')) { |
| 906 | 907 | $this->verifyAdminPermission(); |
| 907 | 908 | GlobalHelper::requirePostMethod(); |
| 908 | 909 | try { |
| @@ -1155,9 +1156,9 @@ | ||
| 1155 | 1156 | } |
| 1156 | 1157 | |
| 1157 | 1158 | public function duplicateAForm() |
| 1158 | 1159 | { |
| 1159 | - \ignore_user_abort(); | |
| 1160 | + Utilities::ignoreUserAbort(); | |
| 1160 | 1161 | if (isset($_REQUEST['_ajax_nonce']) && wp_verify_nonce(sanitize_text_field(wp_unslash($_REQUEST['_ajax_nonce'])), 'bitforms_save')) { |
| 1161 | 1162 | $this->verifyAdminPermission(); |
| 1162 | 1163 | GlobalHelper::requirePostMethod(); |
| 1163 | 1164 | try { |
| @@ -1187,9 +1188,9 @@ | ||
| 1187 | 1188 | } |
| 1188 | 1189 | |
| 1189 | 1190 | public function importAForm() |
| 1190 | 1191 | { |
| 1191 | - \ignore_user_abort(); | |
| 1192 | + Utilities::ignoreUserAbort(); | |
| 1192 | 1193 | if (isset($_REQUEST['_ajax_nonce']) && wp_verify_nonce(sanitize_text_field(wp_unslash($_REQUEST['_ajax_nonce'])), 'bitforms_save')) { |
| 1193 | 1194 | $this->verifyAdminPermission(); |
| 1194 | 1195 | GlobalHelper::requirePostMethod(); |
| 1195 | 1196 | try { |
| @@ -1468,9 +1469,9 @@ | ||
| 1468 | 1469 | } |
| 1469 | 1470 | |
| 1470 | 1471 | public function updateFormEntry() |
| 1471 | 1472 | { |
| 1472 | - \ignore_user_abort(); | |
| 1473 | + Utilities::ignoreUserAbort(); | |
| 1473 | 1474 | if (isset($_REQUEST['_ajax_nonce']) && wp_verify_nonce(sanitize_text_field(wp_unslash($_REQUEST['_ajax_nonce'])), 'bitforms_save')) { |
| 1474 | 1475 | $this->verifyAdminPermission(); |
| 1475 | 1476 | $formHandler = FormHandler::getInstance(); |
| 1476 | 1477 | $sanitized_request = [ |