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/Integration/MetaBox/MetaBoxHandler.php +3 -9 3.2.22.15.3 View file →
@@ -51,9 +51,9 @@
51 51 public function execute(IntegrationHandler $integrationHandler, $integrationData, $fieldValues, $entryID, $logID)
52 52 {
53 53 $integrationDetails = is_string($integrationData->integration_details) ? json_decode($integrationData->integration_details) : $integrationData->integration_details;
54 54
55 - $formManger = FormManager::getInstance($integrationData->form_id);
55 + $formManger = new FormManager($integrationData->form_id);
56 56
57 57 $formFields = $formManger->getFields();
58 58
59 59 $postData = $this->setPostData($integrationDetails);
@@ -59,18 +59,13 @@
59 59 $postData = $this->setPostData($integrationDetails);
60 60
61 61 $id = $postData['post_type'] . '_' . $entryID;
62 62
63 - $existPostId = $this->_wpdb->get_results(
64 - $this->_wpdb->prepare(
65 - "SELECT * FROM `{$this->_wpdb->prefix}bitforms_form_entrymeta` WHERE `meta_key`=%s",
66 - $id
67 - )
68 - );
63 + $existPostId = $this->_wpdb->get_results("SELECT * FROM `{$this->_wpdb->prefix}bitforms_form_entrymeta` WHERE `meta_key`='$id' ");
69 64
70 65 $metaBoxFields = rwmb_get_object_fields($postData['post_type']);
71 66
72 - $taxonomies = (new WpFileHandler($integrationData->form_id))->taxonomyData($formFields, $fieldValues);
67 + $taxonomies = (new WpFileHandler($integrationData->form_id))->getTaxonomies($formFields, $fieldValues);
73 68
74 69 if ([] === $existPostId) {
75 70 $postId = wp_insert_post(['post_title' => '(no title)', 'post_content' => '']);
76 71
@@ -93,9 +88,8 @@
93 88 wp_set_post_terms($postId, $taxonomy['value'], $taxonomy['term'], false);
94 89 }
95 90 }
96 91
97 - // Form entry meta insert; meta_key/meta_value required to map dynamic field data to MetaBox integration record.
98 92 $this->_wpdb->insert(
99 93 "{$this->_wpdb->prefix}bitforms_form_entrymeta",
100 94 [
101 95 'meta_key' => $postData['post_type'] . '_' . $entryID,