From 19d49218030344aa12fdb9a39e5bf1824f5658b4 Mon Sep 17 00:00:00 2001
From: Kevin Cristiano <kcristiano@kcristiano.com>
Date: Thu, 29 Feb 2024 14:39:25 +0000
Subject: [PATCH] comment out functions  - they will need to be enbled as
 needed per site

---
 tc-allow-acf-content.php | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)

diff --git a/tc-allow-acf-content.php b/tc-allow-acf-content.php
index 7add958..883f7f7 100644
--- a/tc-allow-acf-content.php
+++ b/tc-allow-acf-content.php
@@ -6,7 +6,7 @@
  * Author:          Kevin Cristiano
  * Text Domain:     tc-allow-acf-content
  * Domain Path:     /languages
- * Version:         0.1.0
+ * Version:         1.0
  *
  * @package         Tc_Acf_Allow_Content
  */
@@ -15,28 +15,41 @@
 * Add filter to enable ACF escaping for testing
 * This will be the default in 6.2.7+
 */
-add_filter( 'acf/the_field/escape_html_optin', '__return_true' );
+
+//add_filter( 'acf/the_field/escape_html_optin', '__return_true' );
+
+/**
+* diable notices
+*/
+
+//add_filter( 'acf/admin/prevent_escaped_html_notice', '__return_true' );
 
 /**
 * Add filter to allow unfiltered HTML for the_field based on https://www.advancedcustomfields.com/blog/acf-6-2-5-security-release/#conditionally-disabling-the-new-behavior
 * Change selector to ACF field slug
 * Add one filter for each field
 */
+
+/*
 add_filter( 'acf/the_field/allow_unsafe_html', function( $allowed, $selector ) {
   if ( $selector === "intro" ) {
       return true;
   }
   return $allowed;
 }, 10, 2);
+*/
 
 /**
 * Add filter to allow unfiltered HTML for ACF Shortcodes based on https://www.advancedcustomfields.com/blog/acf-6-2-5-security-release/#conditionally-disabling-the-new-behavior
 * Change $atts['field'] to ACF Field Slug
 * * Add one filter for each shortcode
 */
+
+/*
 add_filter( 'acf/shortcode/allow_unsafe_html', function ( $allowed, $atts ) {
     if ( $atts['field'] === 'podcast_iframe' ) {
         return true;
     }
     return $allowed;
-}, 10, 2 );
\ No newline at end of file
+}, 10, 2 );
+*/
-- 
GitLab