diff --git a/3rd-party/class-salesforce-lead-form.php b/3rd-party/class-salesforce-lead-form.php index e20d383f61..fb3df2491f 100644 --- a/3rd-party/class-salesforce-lead-form.php +++ b/3rd-party/class-salesforce-lead-form.php @@ -27,7 +27,7 @@ public static function initialize() { * Process Salesforce Lead forms * * @param int $post_id - the post_id for the CPT that is created. - * @param array $fields - Grunion_Contact_Form_Field array. + * @param array $fields - Contact_Form_Field array. * @param bool $is_spam - marked as spam by Akismet(?). * @param array $entry_values - extra fields added to from the contact form. * diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a10f8576c..1cf0246d43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ This is an alpha version! The changes listed here are not final. - AI Featured Image: allow users to write prompts for the image generation. - AI Featured Image: change upgrade prompt layout and fix UI issues. - AI Featured Image: start tracking error messages. +- Contact Form: Removing code and renaming relevant references to ensure we use the package version of the contact form. - Janitorial: deprecate methods in Jetpack class in favor of methods from the Connection package. - Jetpack Sync: Add Woocommerce event remove_order_items to Jetpack Sync - SSO: deprecate in-plugin methods in favor of methods from the Connection package. diff --git a/_inc/build/contact-form/js/dropdown.min.asset.php b/_inc/build/contact-form/js/dropdown.min.asset.php deleted file mode 100644 index 347eb2896d..0000000000 --- a/_inc/build/contact-form/js/dropdown.min.asset.php +++ /dev/null @@ -1 +0,0 @@ - array(), 'version' => '7a68d6664a189f5c7949'); diff --git a/_inc/build/contact-form/js/dropdown.min.js b/_inc/build/contact-form/js/dropdown.min.js deleted file mode 100644 index 902078ae35..0000000000 --- a/_inc/build/contact-form/js/dropdown.min.js +++ /dev/null @@ -1 +0,0 @@ -jQuery((function(e){function t(){e(".contact-form .contact-form-dropdown").selectmenu({classes:{"ui-selectmenu-button":"contact-form-dropdown__button","ui-selectmenu-menu":"contact-form-dropdown__menu"}}).attr("aria-hidden",!0).prop("tabindex",-1)}e(document).ready((function(){t(),new MutationObserver((()=>{t()})).observe(document.querySelector("body"),{childList:!0,subtree:!0})}))})); \ No newline at end of file diff --git a/_inc/build/contact-form/js/editor-view.min.asset.php b/_inc/build/contact-form/js/editor-view.min.asset.php deleted file mode 100644 index 03a6b287bd..0000000000 --- a/_inc/build/contact-form/js/editor-view.min.asset.php +++ /dev/null @@ -1 +0,0 @@ - array(), 'version' => 'be23ac1ecdd756597e40'); diff --git a/_inc/build/contact-form/js/editor-view.min.js b/_inc/build/contact-form/js/editor-view.min.js deleted file mode 100644 index 6ac1718db0..0000000000 --- a/_inc/build/contact-form/js/editor-view.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(t,e,n){if(e.mce=e.mce||{},void 0!==e.mce.views){e.mce.grunion_wp_view_renderer={shortcode_string:"contact-form",template:e.template("grunion-contact-form"),field_templates:{email:e.template("grunion-field-email"),telephone:e.template("grunion-field-telephone"),textarea:e.template("grunion-field-textarea"),radio:e.template("grunion-field-radio"),checkbox:e.template("grunion-field-checkbox"),"checkbox-multiple":e.template("grunion-field-checkbox-multiple"),select:e.template("grunion-field-select"),date:e.template("grunion-field-date"),text:e.template("grunion-field-text"),name:e.template("grunion-field-text"),url:e.template("grunion-field-url")},edit_template:e.template("grunion-field-edit"),editor_inline:e.template("grunion-editor-inline"),editor_option:e.template("grunion-field-edit-option"),getContent:function(){var t,i,o=this.shortcode.content,r=0,c="";for(o||(o=n.default_form);t=e.shortcode.next("contact-field",o,r);)r=t.index+t.content.length,(i=t.shortcode.attrs.named).type&&this.field_templates[i.type]||(i.type="text"),i.required&&(i.required=n.labels.required_field_text),i.options&&"string"==typeof i.options&&(i.options=i.options.split(",")),c+=this.field_templates[i.type](i);var s={body:c,submit_button_text:n.labels.submit_button_text};return this.template(s)},edit:function(i,o){var r,c,s=e.shortcode.next(this.shortcode_string,i).shortcode,l=t(tinyMCE.activeEditor.getDoc()).find(".wpview.wpview-wrap").filter((function(){return t(this).attr("data-mce-selected")})),a=t('