From e331a84b9072d312d9a36b05060f5562ca6cba1b Mon Sep 17 00:00:00 2001 From: kawsarahmedr Date: Wed, 12 Mar 2025 02:24:42 +0600 Subject: [PATCH 1/3] Add support for ability to adding inner style --- includes/functions.php | 5 +++++ insert-codes.php | 4 ++-- package.json | 2 +- readme.txt | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index d522662..13b19c8 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -19,6 +19,11 @@ function insertcodes_get_allowed_html() { 'data-user' => array(), 'id' => array(), ), + 'style' => array( + 'type' => array(), + 'media' => array(), + 'src' => array(), + ), 'noscript' => array( 'type' => array(), 'src' => array(), diff --git a/insert-codes.php b/insert-codes.php index 4034320..085d06e 100644 --- a/insert-codes.php +++ b/insert-codes.php @@ -3,7 +3,7 @@ * Plugin Name: Insert Codes - The Code Snippets Manager for WordPress * Plugin URI: https://urldev.com/plugins/insert-codes/ * Description: The "Insert Codes - The Code Snippets Manager for WordPress" plugin allows you to easily manage custom code snippets and add custom code to the header, body, and footer sections of your WordPress website. - * Version: 1.4.0 + * Version: 1.5.0 * Requires at least: 5.0 * Requires PHP: 7.4 * Author: UrlDev @@ -41,7 +41,7 @@ * @return Plugin plugin initialize class. */ function insertcodes() { - return Plugin::create( __FILE__, '1.4.0' ); + return Plugin::create( __FILE__, '1.5.0' ); } // Initialize the plugin. diff --git a/package.json b/package.json index 66394fd..7cf2693 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "insert-codes", "title": "Insert Codes - The Code Snippets Manager for WordPress", - "version": "1.4.0", + "version": "1.5.0", "description": "The \"Insert Codes - The Code Snippets Manager for WordPress\" plugin allows you to easily manage custom code snippets and add custom code to the header, body, and footer sections of your WordPress website.", "homepage": "https://urldev.com/plugins/insert-codes/", "license": "GPL-v2.0-or-later", diff --git a/readme.txt b/readme.txt index 776168d..b96cdf8 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: urldev Tags: code, code snippet, insert codes, header, footer Requires at least: 5.0 Tested up to: 6.7 -Stable tag: 1.4.0 +Stable tag: 1.5.0 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html From 35d6e6579a002a09dfd66771d94bea90b01bd9fa Mon Sep 17 00:00:00 2001 From: kawsarahmedr Date: Wed, 12 Mar 2025 02:26:39 +0600 Subject: [PATCH 2/3] Update pot file --- languages/insert-codes.pot | 4 ++-- package-lock.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/languages/insert-codes.pot b/languages/insert-codes.pot index 870c4c9..5784683 100644 --- a/languages/insert-codes.pot +++ b/languages/insert-codes.pot @@ -3,9 +3,9 @@ msgid "" msgstr "" "Project-Id-Version: Insert Codes - The Code Snippets Manager for WordPress " -"1.4.0\n" +"1.5.0\n" "Report-Msgid-Bugs-To: https://urldev.com/support\n" -"POT-Creation-Date: 2025-01-15 10:37:45+00:00\n" +"POT-Creation-Date: 2025-03-11 20:26:23+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/package-lock.json b/package-lock.json index 0da5e56..6fb72ea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "insert-codes", - "version": "1.4.0", + "version": "1.5.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "insert-codes", - "version": "1.4.0", + "version": "1.5.0", "license": "GPL-v2.0-or-later", "devDependencies": { "@lodder/time-grunt": "^4.0.0", From c38a3c0cdbf43d00ee64bd42e85ed353d5a838c8 Mon Sep 17 00:00:00 2001 From: kawsarahmedr Date: Wed, 12 Mar 2025 02:27:50 +0600 Subject: [PATCH 3/3] Add changelog --- readme.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/readme.txt b/readme.txt index b96cdf8..3153cc0 100644 --- a/readme.txt +++ b/readme.txt @@ -125,6 +125,9 @@ A: Currently, the plugin does not support adding scripts to specific taxonomies. 3. Settings Page: Easy and user-friendly admin panel to configure the header, body, and footer scripts options. == Changelog == += 1.5.0 (12 March 2025) = +* New: Add support for the ability to add inner style. + = 1.4.0 (15 January 2025) = * New: Added WordPress Playground for live preview of code snippets.