diff --git a/code-block-pro.php b/code-block-pro.php index 202fd5c..5044467 100644 --- a/code-block-pro.php +++ b/code-block-pro.php @@ -7,7 +7,7 @@ * Author URI: https://code-block-pro.com/?utm_campaign=plugin&utm_source=author-uri * Requires at least: 6.0 * Requires PHP: 7.0 - * Version: 1.26.5 + * Version: 1.26.6 * License: GPL-2.0-or-later * License URI: https://www.gnu.org/licenses/gpl-2.0.html * Text Domain: code-block-pro diff --git a/package-lock.json b/package-lock.json index dbeb0cf..74507dc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -57,6 +57,7 @@ "postcss-safe-important": "2.0.1", "prettier": "3.3.3", "replace-in-file": "8.2.0", + "rtlcss-webpack-plugin": "^4.0.7", "tailwindcss": "3.4.13", "typescript": "5.6.2", "webpack": "^5.95.0" diff --git a/package.json b/package.json index a377914..8b4fff5 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ "postcss-safe-important": "2.0.1", "prettier": "3.3.3", "replace-in-file": "8.2.0", + "rtlcss-webpack-plugin": "^4.0.7", "tailwindcss": "3.4.13", "typescript": "5.6.2", "webpack": "^5.95.0" diff --git a/readme.txt b/readme.txt index 9e70b41..d84e7d6 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Contributors: kbat82, dcooney Tags: block, code, syntax, highlighter, php Tested up to: 6.6 -Stable tag: 1.26.5 +Stable tag: 1.26.6 License: GPL-2.0-or-later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -313,6 +313,9 @@ Themes are rendered inside the editor as you type or make changes, so the code b == Changelog == += 1.26.6 - 2024-09-30 = +- Fixes a bug related to rtl being applied by the webpack wp config + = 1.26.5 - 2024-09-30 = - Adds option to disable php shortcode rendering - Updates test element targeting to target new WP classes diff --git a/webpack.config.js b/webpack.config.js index 63f3314..6b953d9 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -3,6 +3,8 @@ const defaultConfig = require('@wordpress/scripts/config/webpack.config'); // eslint-disable-next-line no-undef const CopyPlugin = require('copy-webpack-plugin'); +// eslint-disable-next-line no-undef +const RtlCssPlugin = require('rtlcss-webpack-plugin'); // eslint-disable-next-line no-undef module.exports = { @@ -12,7 +14,9 @@ module.exports = { host: 'wordpress.test', }, plugins: [ - ...defaultConfig.plugins, + ...defaultConfig.plugins.filter( + (filter) => !(filter instanceof RtlCssPlugin), + ), new CopyPlugin({ patterns: [ { from: 'node_modules/shiki', to: 'shiki' },