summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/contact-form.php')
-rw-r--r--plugins/jetpack/modules/contact-form.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/jetpack/modules/contact-form.php b/plugins/jetpack/modules/contact-form.php
index 454f80bd..c8ee1a80 100644
--- a/plugins/jetpack/modules/contact-form.php
+++ b/plugins/jetpack/modules/contact-form.php
@@ -14,3 +14,17 @@
*/
include dirname( __FILE__ ) . '/contact-form/grunion-contact-form.php';
+/*
+ * Filters if the new Contact Form Editor View should be used.
+ *
+ * A temporary filter to disable the new Editor View for the older UI.
+ * Please note this filter and the old UI will be removed in the future.
+ * Expected to be removed in Jetpack 5.8 or if a security issue merits removing the old code sooner.
+ *
+ * @since 5.2.0
+ *
+ * @param boolean $view Use new Editor View. Default true.
+ */
+if ( is_admin() && apply_filters( 'tmp_grunion_allow_editor_view', true ) ) {
+ require_once dirname( __FILE__ ) . '/contact-form/grunion-editor-view.php';
+}