Skip to content

Commit

Permalink
v 2.60.1
Browse files Browse the repository at this point in the history
- Removed a console log.
- Add new supported vars on save post.
- New github actions JS rules.
  • Loading branch information
Darklg committed Jul 5, 2024
1 parent a16a39a commit 34dbcfc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion assets/front-blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ window.addEventListener("DOMContentLoaded", function() {
}

if ($next) {
console.log('az');
$next.addEventListener("click", function(e) {
e.preventDefault();
gotomodal('next');
Expand Down
6 changes: 3 additions & 3 deletions wpu_acf_flexible.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand Down Expand Up @@ -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', '<p><a><strong><em><h1><h2><h3><h4><h5><ol><ul><li><img>');
$allowed_tags = apply_filters('wpu_acf_flexible__save_post_allowed_tags', '<p><br><a><strong><em><h1><h2><h3><h4><h5><ol><ul><li><img><table><tr><td><th><tbody><thead><tfoot>');

/* Disable form content */
$content = preg_replace('/<form(.*?)>(.*?)<\/form>/isU', '', $content);
Expand Down

0 comments on commit 34dbcfc

Please sign in to comment.