WordPress 7.0以降のifr...
 
通知
すべてクリア

[解決済] WordPress 7.0以降のiframeエディター事前対応について

4 投稿
2 ユーザー
4 Reactions
1,302 表示
Y. INABA
(@yinaba)
投稿: 273
Reputable Member
トピックスターター
 

いつもお世話になっております。

Cocoonフォーラムの以下スレッドで報告されていたのと同じ事象がXwriteでも確認できました。

WordPress7.0に向けてのGutenbergエディターの警告について | Cocoonテーマに関する質問 | Cocoon フォーラム

 

現状、Xwriteの独自ブロックの多くがdeprecatedとなっており、WordPress 7.0以降にアップデート時にブロックエディターの動作不良が生じる可能性があります。

上記ご認識いただき、お早めに新APIへの移行対応をお願いいたします。

 


▼エラー文

Block with API version 2 or lower is deprecated since version 6.9. See: 
 https://developer.wordpress.org/block-editor/reference-guides/block-api/block-api-versions/block-migration-for-iframe-editor-compatibility/ 

Note: The block "xwrite/xxxxxxx" is registered with API version 2. This means that the post editor may work as a non-iframe editor. Since all editors are planned to work as iframes in the future, set the `apiVersion' field to 3 and test the block inside the iframe editor.

 

▼URL リンク先と参考文

Migrating Blocks for iframe Editor Compatibility – Block Editor Handbook | Developer.WordPress.org(英語)

In WordPress 7.0, the post editor is planned to always work as an iframe, regardless of the apiVersion of registered blocks.

Ahead of this, to encourage developers to test in the iframe editor, WordPress 6.9 introduces the following developer warnings and schema changes:

  • Browser console warnings: When blocks are registered with apiVersion 2 or lower, WordPress displays the following message in the browser console:
    Block with API version 2 or lower is deprecated since version 6.9. See: https://developer.wordpress.org/block-editor/reference-guides/block-api/block-api-versions/block-migration-for-iframe-editor-compatibility/
    Note: The block "my-plugin/my-block" is registered with API version 2. This means that the post editor may work as a non-iframe editor. Since all editors are planned to work as iframes in the future, set the `apiVersion` field to 3 and test the block inside the iframe editor.
  • block.json schema update: The block.json schema has been updated to only allow apiVersion: 3 for new or updated blocks. Older versions (1 or 2) will no longer pass schema validation.
Xwriteバージョン
4.0.2
WordPressバージョン
6.9.1
PHPバージョン
8.3.21
ガイドラインへの同意
フォーラムガイドライン」に同意します。
個人情報の記載に関する確認
個人情報の記載がないことを確認しました。

このトピックは2か月前 2回からY. INABAに変更されました

XWRITEがリリースされたときからのユーザーです。
※回答は個人の見解によるもので、エックスサーバー様のご意見とは異なる場合がございます※

 
投稿済 : 2026年2月7日 8:59 PM
hamada(XWRITE開発)
(@hamada)
投稿: 360
Reputable Member Moderator
 

@yinaba さま

ご要望いただきましてありがとうございます。

ご指摘の件につきましては開発チームでも認識しており、対応を進めております。
4月のWordPress7.0アップデートまでに対応の完了を予定しております。

アップデートをお待ちいただけますと幸いです。
アップデート完了時にまたご報告させていただきます。


 
投稿済 : 2026年2月9日 10:29 AM
hamada(XWRITE開発)
(@hamada)
投稿: 360
Reputable Member Moderator
 

@yinaba さま

お待たせいたしました。

本日のXwrite v4.0.4アップデートにて
ブロックのAPIバージョンを3にアップデートを行い、
WordPressの最新仕様への最適化を行いましたので
ご確認いただけますと幸いです。

Xwrite v4.0.4 アップデート


 
投稿済 : 2026年3月10日 6:47 PM
Y. INABA reacted
Y. INABA
(@yinaba)
投稿: 273
Reputable Member
トピックスターター
 

@hamada

お世話になっております。

お忙しい中ご対応いただきありがとうございます。
本件、問題なく反映されておりました。

引き続きよろしくお願いいたします。


この投稿は2週間前ずつY. INABAに変更されました

XWRITEがリリースされたときからのユーザーです。
※回答は個人の見解によるもので、エックスサーバー様のご意見とは異なる場合がございます※

 
投稿済 : 2026年3月10日 10:48 PM
共有: