From e95a7d36599699488a0cb0f2d8044dd411467c2e Mon Sep 17 00:00:00 2001 From: kawsarahmedr Date: Tue, 14 Jan 2025 10:01:54 +0600 Subject: [PATCH 1/4] Fix #7 --- includes/functions.php | 13 +++++++++++++ languages/insert-codes.pot | 6 +++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index a7f95da..d522662 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -75,5 +75,18 @@ function insertcodes_get_allowed_html() { 'id' => array(), 'style' => array(), ), + 'link' => array( + 'rel' => array(), + 'type' => array(), + 'href' => array(), + 'media' => array(), + 'hreflang' => array(), + 'sizes' => array(), + 'as' => array(), + 'crossorigin' => array(), + 'referrerpolicy' => array(), + 'title' => array(), + 'integrity' => array(), + ), ); } diff --git a/languages/insert-codes.pot b/languages/insert-codes.pot index 80c5d90..79a43ca 100644 --- a/languages/insert-codes.pot +++ b/languages/insert-codes.pot @@ -1,15 +1,15 @@ -# Copyright (C) 2024 UrlDev +# Copyright (C) 2025 UrlDev # This file is distributed under the GPL v2 or later. msgid "" msgstr "" "Project-Id-Version: Insert Codes - The Code Snippets Manager for WordPress " "1.2.0\n" "Report-Msgid-Bugs-To: https://urldev.com/support\n" -"POT-Creation-Date: 2024-09-07 15:45:49+00:00\n" +"POT-Creation-Date: 2025-01-14 03:47:02+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"PO-Revision-Date: 2024-MO-DA HO:MI+ZONE\n" +"PO-Revision-Date: 2025-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: en\n" From 2230972b02608773fd4cc4c8ed092e50eb62bc4f Mon Sep 17 00:00:00 2001 From: kawsarahmedr Date: Tue, 14 Jan 2025 10:04:30 +0600 Subject: [PATCH 2/4] Fix #6 --- includes/Admin/views/codes.php | 2 +- includes/Admin/views/settings.php | 2 +- includes/Admin/views/snippets.php | 2 +- languages/insert-codes.pot | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/includes/Admin/views/codes.php b/includes/Admin/views/codes.php index 5261418..fa51353 100644 --- a/includes/Admin/views/codes.php +++ b/includes/Admin/views/codes.php @@ -15,7 +15,7 @@

-

+


diff --git a/includes/Admin/views/settings.php b/includes/Admin/views/settings.php index 69a92f9..c44ddff 100644 --- a/includes/Admin/views/settings.php +++ b/includes/Admin/views/settings.php @@ -15,7 +15,7 @@

-

+


diff --git a/includes/Admin/views/snippets.php b/includes/Admin/views/snippets.php index e62fda8..5bf9ece 100644 --- a/includes/Admin/views/snippets.php +++ b/includes/Admin/views/snippets.php @@ -15,7 +15,7 @@

-

+


diff --git a/languages/insert-codes.pot b/languages/insert-codes.pot index 79a43ca..63e5add 100644 --- a/languages/insert-codes.pot +++ b/languages/insert-codes.pot @@ -50,7 +50,7 @@ msgstr "" #: includes/Admin/views/codes.php:18 msgid "" -"Bellow are the code editor fields for inserting codes inside the header, " +"Below are the code editor fields for inserting codes inside the header, " "body & footer." msgstr "" @@ -107,7 +107,7 @@ msgid "Give a Rating" msgstr "" #: includes/Admin/views/settings.php:18 -msgid "Bellow are the settings fields of the plugin." +msgid "Below are the settings fields of the plugin." msgstr "" #: includes/Admin/views/settings.php:25 @@ -167,7 +167,7 @@ msgstr "" #: includes/Admin/views/snippets.php:18 msgid "" -"Bellow are the code editor fields for inserting code snippets inside the " +"Below are the code editor fields for inserting code snippets inside the " "functions.php file." msgstr "" @@ -290,4 +290,4 @@ msgstr "" #. Author URI of the plugin/theme msgid "https://urldev.com" -msgstr "" \ No newline at end of file +msgstr "" From 31bc795e24e6acf74681f98ac05757b00f66ab62 Mon Sep 17 00:00:00 2001 From: kawsarahmedr Date: Tue, 14 Jan 2025 10:09:02 +0600 Subject: [PATCH 3/4] Update version and changelog --- insert-codes.php | 6 +++--- package.json | 2 +- readme.txt | 8 ++++++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/insert-codes.php b/insert-codes.php index e1a6c18..b4f3bb0 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.2.0 + * Version: 1.3.0 * Requires at least: 5.0 * Requires PHP: 7.4 * Author: UrlDev @@ -12,7 +12,7 @@ * License URI: https://www.gnu.org/licenses/gpl-2.0.html * Text Domain: insert-codes * Domain Path: /languages - * Tested up to: 6.6 + * Tested up to: 6.7 * * @package InsertCodes * @@ -41,7 +41,7 @@ * @return Plugin plugin initialize class. */ function insertcodes() { - return Plugin::create( __FILE__, '1.2.0' ); + return Plugin::create( __FILE__, '1.3.0' ); } // Initialize the plugin. diff --git a/package.json b/package.json index c68a0e7..46b367c 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.2.0", + "version": "1.3.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 95ae158..75f5fd4 100644 --- a/readme.txt +++ b/readme.txt @@ -2,8 +2,8 @@ Contributors: urldev Tags: code, code snippet, insert codes, header, footer Requires at least: 5.0 -Tested up to: 6.6 -Stable tag: 1.2.0 +Tested up to: 6.7 +Stable tag: 1.3.0 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -125,6 +125,10 @@ 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.3.0 (14 January 2025) = +* New: Added support for inserting css and js files using the link tag. +* Compatibility: Compatible with the latest version of WordPress. + = 1.2.0 (07 September 2024) = * New: Added support for custom code snippets. * Enhancement: Improved code snippet management. From 9ea50660535407df55dbfe33848839ce1a8c7765 Mon Sep 17 00:00:00 2001 From: kawsarahmedr Date: Tue, 14 Jan 2025 10:10:50 +0600 Subject: [PATCH 4/4] Update pot file --- languages/insert-codes.pot | 6 +++--- package-lock.json | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/languages/insert-codes.pot b/languages/insert-codes.pot index 63e5add..31150b7 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.2.0\n" +"1.3.0\n" "Report-Msgid-Bugs-To: https://urldev.com/support\n" -"POT-Creation-Date: 2025-01-14 03:47:02+00:00\n" +"POT-Creation-Date: 2025-01-14 04:10:39+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -290,4 +290,4 @@ msgstr "" #. Author URI of the plugin/theme msgid "https://urldev.com" -msgstr "" +msgstr "" \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index a923a3a..4b1c3dd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "insert-codes", - "version": "1.2.0", + "version": "1.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "insert-codes", - "version": "1.2.0", + "version": "1.3.0", "license": "GPL-v2.0-or-later", "devDependencies": { "@lodder/time-grunt": "^4.0.0",