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.", 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.