From f8627235c524fba0a81f19ac930df92d248eb73b Mon Sep 17 00:00:00 2001 From: mricoul Date: Thu, 19 Feb 2026 14:38:06 +0100 Subject: [PATCH 1/2] fix(edit): supports WordPress versions < 6.9 and >= 6.9 Ensures compatibility with both older and newer versions of WordPress by handling the change in how the `ServerSideRender` component is exported. This resolves potential issues where the block might not render correctly depending on the WordPress version being used. --- src/edit.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/edit.js b/src/edit.js index 8570101..d814357 100644 --- a/src/edit.js +++ b/src/edit.js @@ -21,7 +21,9 @@ import { __experimentalUseMultipleOriginColorsAndGradients as useMultipleOriginColorsAndGradients, } from '@wordpress/block-editor'; -import { ServerSideRender } from '@wordpress/server-side-render'; +// Support WordPress < 6.9 (default export) and >= 6.9 (named export). +import * as ServerSideRenderModule from '@wordpress/server-side-render'; +const ServerSideRender = ServerSideRenderModule.ServerSideRender ?? ServerSideRenderModule.default; /** * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files. From d19477dc3b39825259d1618bc3533a92361e045d Mon Sep 17 00:00:00 2001 From: mricoul Date: Thu, 19 Feb 2026 14:39:29 +0100 Subject: [PATCH 2/2] chore: bump plugin version --- .plugin-data | 2 +- CHANGELOG.md | 4 ++++ blockparty-icons.php | 4 ++-- package.json | 2 +- src/block.json | 2 +- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.plugin-data b/.plugin-data index 7a83e5b..0d31794 100644 --- a/.plugin-data +++ b/.plugin-data @@ -1,4 +1,4 @@ { - "version": "1.0.1", + "version": "1.0.2", "slug": "blockparty-icons" } diff --git a/CHANGELOG.md b/CHANGELOG.md index c280e3d..02d5138 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ This plugin **doesn't run any sanitization on SVGs** before using them. Only use ## Changelog +### 1.0.2 - 2026-02-19 + +- Add support for WordPress <= 6.8 for ServerSideRender component + ### 1.0.1 - 2026-02-19 - Exclude .wp-env directory from export. diff --git a/blockparty-icons.php b/blockparty-icons.php index 2d8ae25..9298657 100644 --- a/blockparty-icons.php +++ b/blockparty-icons.php @@ -4,7 +4,7 @@ * Description: Provides blocks in WordPress editor to add custom SVG icons. * Requires at least: 6.2 * Requires PHP: 8.1 - * Version: 1.0.1 + * Version: 1.0.2 * Author: Blockparty * Author URI: https://beapi.fr * License: GPL-2.0-or-later @@ -29,7 +29,7 @@ include_once __DIR__ . '/vendor/autoload.php'; } -define( 'BLOCKPARTY_ICONS_VERSION', '1.0.1' ); +define( 'BLOCKPARTY_ICONS_VERSION', '1.0.2' ); define( 'BLOCKPARTY_ICONS_URL', plugin_dir_url( __FILE__ ) ); define( 'BLOCKPARTY_ICONS_DIR', plugin_dir_path( __FILE__ ) ); define( 'BLOCKPARTY_ICONS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); diff --git a/package.json b/package.json index b2800fc..ed6b117 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "blockparty-icons", - "version": "1.0.1", + "version": "1.0.2", "description": "Provides blocks in WordPress editor to add custom SVG icons from your theme.", "author": "Be API Technical team", "license": "GPL-2.0-or-later", diff --git a/src/block.json b/src/block.json index 88370e3..f348489 100644 --- a/src/block.json +++ b/src/block.json @@ -2,7 +2,7 @@ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "blockparty/icon", - "version": "1.0.1", + "version": "1.0.2", "title": "Icon", "category": "widgets", "description": "Easily add custom vector icon to your content.",