summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2017-09-01 20:14:25 -0400
committerAnthony G. Basile <blueness@gentoo.org>2017-09-01 20:14:25 -0400
commit9577a2e9108f48dc19beca28264c0af227567aac (patch)
tree62c639f4a486320e595f84e8d986cf8b9c1f0174 /plugins/jetpack/modules/contact-form.php
parentUpdate akismet 3.3.4 (diff)
downloadblogs-gentoo-9577a2e9108f48dc19beca28264c0af227567aac.tar.gz
blogs-gentoo-9577a2e9108f48dc19beca28264c0af227567aac.tar.bz2
blogs-gentoo-9577a2e9108f48dc19beca28264c0af227567aac.zip
Update jetpack 5.2.1
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
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';
+}