Skip to content

Commit 50483b7

Browse files
authored
Merge pull request #11 from soderlind/fix/deprecated
Fix deprecated PHP string interpolation syntax for PHP 8.2+ compatibility
2 parents 778c204 + 8c61eff commit 50483b7

File tree

4 files changed

+48
-5
lines changed

4 files changed

+48
-5
lines changed

CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
## [1.1.5] - 2025-07-16
6+
7+
### Fixed
8+
- Fixed deprecated PHP string interpolation syntax for PHP 8.2+ compatibility
9+
10+
## [1.1.4] - 2024-XX-XX
11+
12+
### Changed
13+
- Enhanced class loading for the GitHub plugin updater
14+
15+
## [1.1.3] - 2024-XX-XX
16+
17+
### Changed
18+
- Use generic [WordPress Plugin GitHub Updater](https://github.com/soderlind/wordpress-plugin-gitHub-updater?tab=readme-ov-file#wordpress-plugin-github-updater)
19+
20+
## [1.1.2] - 2024-XX-XX
21+
22+
### Changed
23+
- Minor code improvements
24+
25+
## [1.1.1] - 2024-XX-XX
26+
27+
### Added
28+
- Plugin updater
29+
30+
## [1.1.0] - 2024-XX-XX
31+
32+
### Changed
33+
- Updated compatibility with WordPress 6.5
34+
- Code improvements and optimization
35+
- Enhanced security measures
36+
37+
## [1.0.0] - 2024-XX-XX
38+
39+
### Added
40+
- Initial release

additional-javascript.php

Lines changed: 3 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.4
15+
* Version: 1.1.5
1616
* Author: Per Soderlind
1717
* Author URI: https://soderlind.no
1818
* Text Domain: additional-javascript
@@ -374,10 +374,10 @@ function customize_preview_additional_javascript() {
374374
function on_customize_controls_enqueue_scripts() {
375375
$suffix = is_rtl() ? '-rtl' : '';
376376
$handle = 'additional-javascript-controls' . $suffix;
377-
$src = plugins_url( "/css/customize-controls-custom-javascript${suffix}.css", __FILE__ );
377+
$src = plugins_url( "/css/customize-controls-custom-javascript{$suffix}.css", __FILE__ );
378378
$deps = [ 'customize-controls' ];
379379

380-
if ( file_exists( plugin_dir_path( __FILE__ ) . "css/customize-controls-custom-javascript${suffix}.css" ) ) {
380+
if ( file_exists( plugin_dir_path( __FILE__ ) . "css/customize-controls-custom-javascript{$suffix}.css" ) ) {
381381
wp_enqueue_style( $handle, $src, $deps, ADDITIONAL_JAVASCRIPT_VERSION );
382382
}
383383
}

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.4",
3+
"version": "1.1.5",
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.4
7+
Stable tag: 1.1.5
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.5 =
66+
* Fixed deprecated PHP string interpolation syntax for PHP 8.2+ compatibility
67+
6568
= 1.1.4 =
6669
* Enhanced class loading for the GitHub plugin updater.
6770

0 commit comments

Comments
 (0)