これは、WordPress 6.9 で追加されたクラシックテーマでブロックスタイルをオンデマンドで読み込む機能に問題が発生しているサイト向けの一時的な回避策です。例 #64354
ブロックテーマではなく従来のクラシックテーマを使用している場合、このプラグインは should_load_separate_core_block_assets フィルターを false に設定します。これにより、6.9 で導入された変更を元に戻し、クラシックテーマがデフォルトで必要に応じてコアブロックのアセットを個別に読み込むようにする効果があります。
このプラグインは、6.9.1 で問題が解決されるまでは暫定的な解決策としてご利用ください。問題が残っているかどうかを確認したい場合は、任意のフロントエンド URL の末尾に ?should_load_separate_core_block_assets=true を追加してください。これにより、WordPress 6.9 のデフォルト動作が復元されます。
この回避策は一時的なものです。なぜなら、コアブロックのアセットを個別に読み込むことでパフォーマンス上の利点が得られるからです。単一の大規模な wp-block-library スタイルシートを読み込むのではなく、必要な時に各ブロックスタイルをオンデマンドで読み込むことができます。オンデマンドで個別のブロックスタイルを読み込むことで、CSS の総量を削減でき、結果としてページの読み込み時間の改善が期待できます。
自動
- WordPress 管理画面でプラグイン > プラグインを追加に移動してください。
- Load Combined Core Block Assets を検索してください。
- Load Combined Core Block Assets をインストールして有効化してください。
Git Updater を使用して、プラグインの GitHub URL からインストールおよび更新することもできます。
マニュアル
- プラグインの ZIP ファイルは、 WordPress.org からまたは GitHub からダウンロードしてください。リポジトリのローカルクローンをお持ちの場合は、
npm run plugin-zip コマンドを実行してください。
- WordPress 管理画面でプラグイン > プラグインを追加に移動してください。
- プラグインのアップロード をクリックしてください。
- ステップ 1 でダウンロードしたシステム上の
load-combined-core-block-assets.zip ファイルを選択し、今すぐインストール をクリックしてください。
- プラグインを有効化ボタンをクリックしてください。
This workaround fixed the issue on my site, kudos to the developer. However, even after 6.9.1 the issue is not resolved without this plugin. Other users report the same, so now not sure how to get a permanent resolution. Surely, WordPress are aware of this?!
My website, which was broken due to WordPress 6.9, has now been restored. I’m very grateful to the author.
Thanks for this workaround! Fixed my site!
Steve
Confirming this fixes layouts broken due to WP 6.9 update on several sites running Genesis with Mai Lifestyle Pro. Thanks!
We built and maintain a hybrid classic/headless WordPress website for a national client. A number of our frontend components (CoreButton, CoreMediaText, etc.) tap into WordPress core editor classnames, props, and critically, CSS rulesets, to provide our client the flexibility they expect when editing blocks and posts.After updating to WordPress 6.9, these components failed to render as expected. Our investigation led us to the post on wordpress-6-9-hotfixes, and subsequently, this plugin. Thankfully, installing this plugin resolved the issue.Thanks to @westonruter for taking the time to publish this hot-fix.
This little plugin is a life saver for anyone running classic themes on WordPress 6.9+. In my case it instantly fixed broken layouts caused by the new “block styles on demand” system clashing with a 3rd party WooCommerce plugin on a Genesis site. If your front end suddenly looks off after updating to WordPress 6.9, install this first before you start tearing your frontend apart!
6件のレビューをすべて表示
Load Combined Core Block Assets はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。
貢献者
1.0.0
- HTML コメント内で翻訳済みメッセージをエスケープし、セキュリティを強化します。
0.1.0