From 34dbcfcd0614f38f537d27e88ae336950383b172 Mon Sep 17 00:00:00 2001 From: Kevin Date: Fri, 5 Jul 2024 15:55:50 +0200 Subject: [PATCH] v 2.60.1 - Removed a console log. - Add new supported vars on save post. - New github actions JS rules. --- .eslintrc.json | 5 ++++- assets/front-blocks.js | 1 - wpu_acf_flexible.php | 6 +++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 2a303ad..200d0d5 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -8,7 +8,10 @@ "ecmaVersion": "latest" }, "rules": { - "no-prototype-builtins": 0 + "no-prototype-builtins": 0, + "no-console": 1, + "no-unused-vars": 1, + "no-undef": 1 }, "globals": { "wpu_acf_flexible_script_wpuacfadmin": true, diff --git a/assets/front-blocks.js b/assets/front-blocks.js index 8ba08ac..850b22d 100644 --- a/assets/front-blocks.js +++ b/assets/front-blocks.js @@ -65,7 +65,6 @@ window.addEventListener("DOMContentLoaded", function() { } if ($next) { - console.log('az'); $next.addEventListener("click", function(e) { e.preventDefault(); gotomodal('next'); diff --git a/wpu_acf_flexible.php b/wpu_acf_flexible.php index 26e198e..1167a1a 100644 --- a/wpu_acf_flexible.php +++ b/wpu_acf_flexible.php @@ -3,7 +3,7 @@ /* Plugin Name: WPU ACF Flexible Description: Quickly generate flexible content in ACF -Version: 2.60.0 +Version: 2.60.1 Plugin URI: https://github.com/WordPressUtilities/wpu_acf_flexible/ Update URI: https://github.com/WordPressUtilities/wpu_acf_flexible/ Author: Darklg @@ -20,7 +20,7 @@ defined('ABSPATH') || die; class wpu_acf_flexible { - private $plugin_version = '2.60.0'; + private $plugin_version = '2.60.1'; public $field_types = array(); public $plugin_dir_path; @@ -1115,7 +1115,7 @@ public function conditionally_hide_fields($field) { } public function secure_post_content($content) { - $allowed_tags = apply_filters('wpu_acf_flexible__save_post_allowed_tags', '