From 3f973b4872341da90eeac944ad7f5977366e2811 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20S=C3=B8derlind?= Date: Wed, 2 Jul 2025 13:01:12 +0200 Subject: [PATCH] Bump version to 1.1.4 in additional-javascript.php, package.json, package-lock.json, and readme.txt. Update stable tag to reflect the new version. Adjusted version reference in installed.php for consistency. Enhanced class loading for the GitHub plugin updater. --- README.md | 3 +++ additional-javascript.php | 8 +++++--- package-lock.json | 4 ++-- package.json | 2 +- readme.txt | 5 ++++- vendor/composer/installed.php | 4 ++-- 6 files changed, 17 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 4bb93e6..6d8a4f6 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,9 @@ The JavaScript is added at the end of the `` section of your site with a p ## Changelog +### 1.1.4 +* Enhanced class loading for the GitHub plugin updater. + ### 1.1.3 * Use generic [WordPress Plugin GitHub Updater](https://github.com/soderlind/wordpress-plugin-gitHub-updater?tab=readme-ov-file#wordpress-plugin-github-updater) diff --git a/additional-javascript.php b/additional-javascript.php index 3429d6e..d81bebe 100644 --- a/additional-javascript.php +++ b/additional-javascript.php @@ -12,7 +12,7 @@ * Plugin URI: https://github.com/soderlind/additional-javascript * GitHub Plugin URI: https://github.com/soderlind/additional-javascript * Description: Add additional JavaScript using the WordPress Customizer. - * Version: 1.1.3 + * Version: 1.1.4 * Author: Per Soderlind * Author URI: https://soderlind.no * Text Domain: additional-javascript @@ -25,13 +25,15 @@ die(); } -define( 'ADDITIONAL_JAVASCRIPT_VERSION', '1.1.1' ); +define( 'ADDITIONAL_JAVASCRIPT_VERSION', '1.1.4' ); define( 'ADDITIONAL_JAVASCRIPT_FILE', __FILE__ ); define( 'ADDITIONAL_JAVASCRIPT_PATH', plugin_dir_path( ADDITIONAL_JAVASCRIPT_FILE ) ); require_once ADDITIONAL_JAVASCRIPT_PATH . 'vendor/autoload.php'; // Include the generic updater class -require_once dirname( __FILE__ ) . '/class-github-plugin-updater.php'; +if ( ! class_exists( 'Soderlind\WordPress\GitHub_Plugin_Updater' ) ) { + require_once ADDITIONAL_JAVASCRIPT_PATH . 'class-github-plugin-updater.php'; +} // Initialize the updater with configuration. $additional_javascript_updater = \Soderlind\WordPress\GitHub_Plugin_Updater::create_with_assets( 'https://github.com/soderlind/additional-javascript', diff --git a/package-lock.json b/package-lock.json index 7870853..84c6d06 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "additional-javascript", - "version": "1.1.2", + "version": "1.1.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "additional-javascript", - "version": "1.1.2", + "version": "1.1.4", "license": "GPLv2", "devDependencies": { "@soderlind/wp-project-version-sync": "^2.0.2" diff --git a/package.json b/package.json index d9d491a..62ed0f5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "additional-javascript", - "version": "1.1.3", + "version": "1.1.4", "description": "Add additional JavaScript using the WordPress Customizer.", "keywords": [ "wordpress", diff --git a/readme.txt b/readme.txt index 023d5b1..d29c5a5 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: javascript, customizer, code, custom code, js Donate link: https://paypal.me/PerSoderlind Requires at least: 6.5 Tested up to: 6.8 -Stable tag: 1.1.3 +Stable tag: 1.1.4 Requires PHP: 8.2 License: GPL-2.0+ License URI: http://www.gnu.org/licenses/gpl-2.0.txt @@ -62,6 +62,9 @@ The JavaScript is added at the end of the `` section of your site with a p == Changelog == += 1.1.4 = +* Enhanced class loading for the GitHub plugin updater. + = 1.1.3 = * Use generic [WordPress Plugin GitHub Updater](https://github.com/soderlind/wordpress-plugin-gitHub-updater?tab=readme-ov-file#wordpress-plugin-github-updater) diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 334a0d5..8119b0d 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -3,7 +3,7 @@ 'name' => 'soderlind/additional-javascript', 'pretty_version' => 'dev-main', 'version' => 'dev-main', - 'reference' => 'f75e4faf5bf987362eca6385bb4c10d6dd9dbf9b', + 'reference' => '22f23630ecfe19338e339f4c91e96d87e550ae88', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -13,7 +13,7 @@ 'soderlind/additional-javascript' => array( 'pretty_version' => 'dev-main', 'version' => 'dev-main', - 'reference' => 'f75e4faf5bf987362eca6385bb4c10d6dd9dbf9b', + 'reference' => '22f23630ecfe19338e339f4c91e96d87e550ae88', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(),