Open rafaucau opened 1 month ago
Yes, it is not compatible with WP 6.6
I did for a test search replace all occurrences of I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.
on I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.
in the package files, and it seems to work. Only the toolbar styles are messed up.
Yes, it is not compatible with WP 6.6
Is there any info about the new update? Compatible with WP6.6? @johngodley
Is there any info about the new update? Compatible with WP6.6
No, there is no info.
We are also facing same issues
I make a workaround by overriding private-api.js and now it's working.
if ( version_compare( get_bloginfo( 'version' ), '6.6', '>=' ) ) { $suffix = SCRIPT_DEBUG ? '.js' : '.min.js'; wp_deregister_script( 'wp-private-apis' ); wp_register_script( 'wp-private-apis', plugins_url( 'libs/private-apis' . $suffix, PLUGIN_FILE ), array(), PLUGIN_VERSION, true ); }
Download private-api.js from the previous WP and add it to your plugin folder.
Here is my workaround:
npm i replace-in-file
.fix-iso-editor.json
:
{
"files": "node_modules/@automattic/isolated-block-editor/**/*",
"from": "I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress",
"to": "I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress"
}
postinstall
script to package.json
:
"postinstall": "replace-in-file --configFile=fix-iso-editor.json"
npm install
.Full package.json example:
{
"private": true,
"scripts": {
"dev": "wp-scripts start",
"dev:hot": "wp-scripts start --hot",
"build": "wp-scripts build",
"postinstall": "replace-in-file --configFile=fix-iso-editor.json"
},
"dependencies": {
"@automattic/isolated-block-editor": "^2.29.0",
"replace-in-file": "^8.1.0"
}
}
ref: #254
After updating to WordPress 6.6, the Isolated Block Editor is not working. Error in the console:
Opt-in string was changed in https://github.com/WordPress/gutenberg/pull/62635, so ISO Editor also needs to update it