Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Changelog

All notable changes to this project will be documented in this file.

## [1.1.5] - 2025-07-16

### Fixed
- Fixed deprecated PHP string interpolation syntax for PHP 8.2+ compatibility

## [1.1.4] - 2024-XX-XX

### Changed
- Enhanced class loading for the GitHub plugin updater

## [1.1.3] - 2024-XX-XX

### Changed
- Use generic [WordPress Plugin GitHub Updater](https://github.com/soderlind/wordpress-plugin-gitHub-updater?tab=readme-ov-file#wordpress-plugin-github-updater)

## [1.1.2] - 2024-XX-XX

### Changed
- Minor code improvements

## [1.1.1] - 2024-XX-XX

### Added
- Plugin updater

## [1.1.0] - 2024-XX-XX

### Changed
- Updated compatibility with WordPress 6.5
- Code improvements and optimization
- Enhanced security measures

## [1.0.0] - 2024-XX-XX

### Added
- Initial release
6 changes: 3 additions & 3 deletions additional-javascript.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.4
* Version: 1.1.5
* Author: Per Soderlind
* Author URI: https://soderlind.no
* Text Domain: additional-javascript
Expand Down Expand Up @@ -374,10 +374,10 @@ function customize_preview_additional_javascript() {
function on_customize_controls_enqueue_scripts() {
$suffix = is_rtl() ? '-rtl' : '';
$handle = 'additional-javascript-controls' . $suffix;
$src = plugins_url( "/css/customize-controls-custom-javascript${suffix}.css", __FILE__ );
$src = plugins_url( "/css/customize-controls-custom-javascript{$suffix}.css", __FILE__ );
$deps = [ 'customize-controls' ];

if ( file_exists( plugin_dir_path( __FILE__ ) . "css/customize-controls-custom-javascript${suffix}.css" ) ) {
if ( file_exists( plugin_dir_path( __FILE__ ) . "css/customize-controls-custom-javascript{$suffix}.css" ) ) {
wp_enqueue_style( $handle, $src, $deps, ADDITIONAL_JAVASCRIPT_VERSION );
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "additional-javascript",
"version": "1.1.4",
"version": "1.1.5",
"description": "Add additional JavaScript using the WordPress Customizer.",
"keywords": [
"wordpress",
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.4
Stable tag: 1.1.5
Requires PHP: 8.2
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
Expand Down Expand Up @@ -62,6 +62,9 @@ The JavaScript is added at the end of the `<head>` section of your site with a p

== Changelog ==

= 1.1.5 =
* Fixed deprecated PHP string interpolation syntax for PHP 8.2+ compatibility

= 1.1.4 =
* Enhanced class loading for the GitHub plugin updater.

Expand Down