Skip to content

Commit 3f973b4

Browse files
committed
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.
1 parent 22f2363 commit 3f973b4

File tree

6 files changed

+17
-9
lines changed

6 files changed

+17
-9
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ The JavaScript is added at the end of the `<head>` section of your site with a p
6868

6969
## Changelog
7070

71+
### 1.1.4
72+
* Enhanced class loading for the GitHub plugin updater.
73+
7174
### 1.1.3
7275
* Use generic [WordPress Plugin GitHub Updater](https://github.com/soderlind/wordpress-plugin-gitHub-updater?tab=readme-ov-file#wordpress-plugin-github-updater)
7376

additional-javascript.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Plugin URI: https://github.com/soderlind/additional-javascript
1313
* GitHub Plugin URI: https://github.com/soderlind/additional-javascript
1414
* Description: Add additional JavaScript using the WordPress Customizer.
15-
* Version: 1.1.3
15+
* Version: 1.1.4
1616
* Author: Per Soderlind
1717
* Author URI: https://soderlind.no
1818
* Text Domain: additional-javascript
@@ -25,13 +25,15 @@
2525
die();
2626
}
2727

28-
define( 'ADDITIONAL_JAVASCRIPT_VERSION', '1.1.1' );
28+
define( 'ADDITIONAL_JAVASCRIPT_VERSION', '1.1.4' );
2929
define( 'ADDITIONAL_JAVASCRIPT_FILE', __FILE__ );
3030
define( 'ADDITIONAL_JAVASCRIPT_PATH', plugin_dir_path( ADDITIONAL_JAVASCRIPT_FILE ) );
3131

3232
require_once ADDITIONAL_JAVASCRIPT_PATH . 'vendor/autoload.php';
3333
// Include the generic updater class
34-
require_once dirname( __FILE__ ) . '/class-github-plugin-updater.php';
34+
if ( ! class_exists( 'Soderlind\WordPress\GitHub_Plugin_Updater' ) ) {
35+
require_once ADDITIONAL_JAVASCRIPT_PATH . 'class-github-plugin-updater.php';
36+
}
3537
// Initialize the updater with configuration.
3638
$additional_javascript_updater = \Soderlind\WordPress\GitHub_Plugin_Updater::create_with_assets(
3739
'https://github.com/soderlind/additional-javascript',

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "additional-javascript",
3-
"version": "1.1.3",
3+
"version": "1.1.4",
44
"description": "Add additional JavaScript using the WordPress Customizer.",
55
"keywords": [
66
"wordpress",

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: javascript, customizer, code, custom code, js
44
Donate link: https://paypal.me/PerSoderlind
55
Requires at least: 6.5
66
Tested up to: 6.8
7-
Stable tag: 1.1.3
7+
Stable tag: 1.1.4
88
Requires PHP: 8.2
99
License: GPL-2.0+
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
@@ -62,6 +62,9 @@ The JavaScript is added at the end of the `<head>` section of your site with a p
6262

6363
== Changelog ==
6464

65+
= 1.1.4 =
66+
* Enhanced class loading for the GitHub plugin updater.
67+
6568
= 1.1.3 =
6669
* Use generic [WordPress Plugin GitHub Updater](https://github.com/soderlind/wordpress-plugin-gitHub-updater?tab=readme-ov-file#wordpress-plugin-github-updater)
6770

vendor/composer/installed.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
'name' => 'soderlind/additional-javascript',
44
'pretty_version' => 'dev-main',
55
'version' => 'dev-main',
6-
'reference' => 'f75e4faf5bf987362eca6385bb4c10d6dd9dbf9b',
6+
'reference' => '22f23630ecfe19338e339f4c91e96d87e550ae88',
77
'type' => 'wordpress-plugin',
88
'install_path' => __DIR__ . '/../../',
99
'aliases' => array(),
@@ -13,7 +13,7 @@
1313
'soderlind/additional-javascript' => array(
1414
'pretty_version' => 'dev-main',
1515
'version' => 'dev-main',
16-
'reference' => 'f75e4faf5bf987362eca6385bb4c10d6dd9dbf9b',
16+
'reference' => '22f23630ecfe19338e339f4c91e96d87e550ae88',
1717
'type' => 'wordpress-plugin',
1818
'install_path' => __DIR__ . '/../../',
1919
'aliases' => array(),

0 commit comments

Comments
 (0)