You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Requires at least: 5.5, but the front page's Cover and Button blocks are invalid in the editor on WordPress 6.6 and 6.7 #33
The theme says it supports WordPress 5.5 and later (style.css and readme.txt: Requires at least: 5.5), but on WordPress 6.6 and 6.7 the Site Editor reports the front page's blocks as broken. Opening the Front Page template shows "Block validation failed" for 9 to 15 core/cover blocks and 1 core/button block, from the patterns front-page.html places (layout/hero-1, layout/content-1 and the others). On WordPress 7.0 and later the same blocks are valid.
The patterns' saved markup was written with a newer block editor (WordPress 7.x), whose Cover and Button blocks save different markup from the 6.6 and 6.7 versions. So on an older site the editor can't match them and shows its "This block contains unexpected or invalid content" warning. The live front page still renders; the problem shows when someone edits it.
So either the stated minimum is too low (the real one looks like 7.0), or the patterns need markup that older WordPress versions can read.
Step-by-step reproduction instructions
On WordPress 6.6.12 (or 6.7), activate Eduacademy 1.0.1.
Go to Appearance → Editor → Templates → Front Page, and open the browser console.
Expected: the template opens with no invalid blocks, as the theme supports this WordPress version. Actual: the console shows Block validation: Block validation failed for core/cover (9 times on 6.6.12, 15 on 6.7) and once for core/button. In the canvas, those blocks offer "Attempt recovery".
On WordPress 7.0.9, 7.1-RC1 and 7.1.5 the same template has no invalid block.
Screenshots, screen recording, code snippet or Help Scout ticket
Found while adding Eduacademy to the WordPress compatibility checks (Codeinwp/qa-compatibility#168), on its validation pair (WordPress 6.6.12 updated to 6.7). The counts come from the Site Editor's console on both versions. Related to raising "Requires at least" / "Tested up to" for the next release.
Environment info
Eduacademy 1.0.1 (built from the v1.0.1 tag), WordPress 6.6.12 and 6.7 (and 7.0.9 / 7.1.x for comparison), PHP 8.3, wp-env, Chromium.
Activity