[testing] WordPress 7.0 RC2 Compatibility Testing Notes
Note: Per The Path Forward for WordPress 7.0, the 7.0 release has been paused. Pre-release versions are frozen through April 17, with a new schedule to be published by April 22. These testing notes were based on RC2 and should be re-verified against the final release once the schedule is confirmed.
Test Environment
- WordPress 7.0-RC2 (Docker:
wordpress:beta-7.0-RC2-php8.2) - FaustWP plugin v1.8.6 (canary branch)
- WPGraphQL 2.10.1
- PHP 8.2.30
PHPUnit Results
All existing tests pass on WP 7.0 RC2:
- Single site: 121 tests, 277 assertions — PASS
- Multisite: 121 tests, 277 assertions — PASS
- Deprecation warnings: None from FaustWP
- REST API endpoints: All registered and responding as expected
Areas That May Need Attention
New Blocks
WP 7.0 introduces new core blocks that don't have dedicated React components in packages/blocks/src/blocks/:
-
core/breadcrumbs— Defined in WP atwp-includes/blocks/breadcrumbs/block.json. Supportsanchor,spacing,color,border,typography, andinteractivity.clientNavigation. Attributes includeseparator,showHomeItem,showCurrentItem,showOnHomePage, andprefersTaxonomy. Currently would fall back toDefaultBlockinpackages/blocks/src/components/DefaultBlock.tsxwhich renders viadangerouslySetInnerHTML={{ __html: renderedHtml }}— functional but without React component-level control. -
core/icon— Defined in WP atwp-includes/blocks/icon/block.json. An SVG icon block with aiconstring attribute ("role": "content"). Supportsanchor,align,color.background,color.text. SameDefaultBlockfallback. -
core/accordion— Appears to be new in WP 7.0 (wp-includes/blocks/accordion/block.json). Not in the current Faust blocks list.
Block Visibility (Viewport-Based Show/Hide)
WP 7.0 adds viewport-based visibility rules in wp-includes/block-supports/block-visibility.php. The implementation reads $block['attrs']['metadata']['blockVisibility'] (line 27) and supports a viewport object with mobile (<=480px), tablet (480px-782px), and desktop (>782px) keys. When a viewport is set to false, WP adds a CSS class like wp-block-hidden-mobile with display: none !important inside a media query.
Faust's block rendering pipeline (packages/blocks/src/components/WordPressBlocksViewer.tsx) currently doesn't read this metadata. If WPGraphQL exposes blockVisibility through the editorBlocks field, Faust could render the same CSS classes. Without this, blocks hidden by an editor for a specific viewport could still render visibly in the Next.js app.
Custom CSS Per Block Instance
WP 7.0 adds a customCSS block support in wp-includes/block-supports/custom-css.php. The custom CSS is stored in $parsed_block['attrs']['style']['css'] (line 23) and rendered with a unique class name generated via wp_unique_id_from_values(). The CSS is validated to not contain HTML markup (line 28: preg_match( '#</?\w+#', $custom_css )).
The getStyles utility in packages/blocks/src/utils/get-styles/getStyles.ts handles inline styles through getInlineStyles.ts, which parses attributes.style via @wordpress/style-engine's getCSSRules(). Whether the style engine processes the css subkey alongside other style properties should be verified — if not, customCSS declarations set by editors would not carry over to the headless frontend.
Dimensions Width/Height Support
WP 7.0 has a dimensions block support in wp-includes/block-supports/dimensions.php. The wp_apply_dimensions_support() function (line 53) processes dimension features and the wp_register_dimensions_support() function (line 21) registers the support. The @faustwp/blocks types in packages/blocks/src/types/styles.ts (line 121) include dimensions?: { minHeight?: string } but only define minHeight. The new width and height properties may need to be added to the type definition, and the existing getInlineStyles handler should be verified for coverage.
Pattern Overrides for Custom Blocks
WP 7.0 expands Block Bindings in wp-includes/class-wp-block.php (line 274). The get_block_bindings_supported_attributes() function in wp-includes/block-bindings.php defines which blocks support bindings — currently core/paragraph (content), core/heading (content), core/image (id, url, title, alt, caption), core/button (url, text, linkTarget, rel), and others. Pattern overrides using core/pattern-overrides source (line 303 of class-wp-block.php) resolve bound values dynamically. The impact on Faust depends on whether WPGraphQL resolves these bindings before exposing them through editorBlocks, or exposes raw binding references.
wp_localize_script Usage
FaustWP uses wp_localize_script() in three places:
includes/replacement/callbacks.php:349— preview link dataincludes/settings/callbacks.php:531— WPGraphQL install UIincludes/telemetry/callbacks.php:97— telemetry configuration
wp_localize_script is defined in WP 7.0 RC2 at wp-includes/functions.wp-scripts.php with no deprecation notice. WordPress has been gradually favoring wp_add_inline_script() but has not formally deprecated wp_localize_script in this release.
Areas That Likely Don't Need Changes
- Real Time Collaboration — Editor-only feature using Yjs sync providers. Doesn't change how saved content is delivered via WPGraphQL.
- AI Client API / Connectors API — PHP backend APIs; headless frontends don't interact with these directly.
- Visual Revisions / View Transitions — wp-admin UI features only.
- Pattern Editing / contentOnly mode — Editor-side editing behavior. Doesn't affect rendered output consumed by Faust.
- Client-side media processing — Browser-based image handling in the editor. Doesn't affect content served via GraphQL.
- Navigation block overlays — Template parts rendered server-side; should be served via
renderedHtmlin WPGraphQL.
Recommended Actions
Tested up tobump — FaustWP currently declaresTested up to: 6.9inplugins/faustwp/faustwp.php(line 15) andplugins/faustwp/readme.txt(line 5). All tests pass on 7.0 RC2, so this could be updated once 7.0 is officially released.- Block Visibility — This may be the most impactful gap for headless frontends. Worth investigating whether WPGraphQL exposes the
blockVisibilityviewport metadata (stored atattrs.metadata.blockVisibility.viewport) and howWordPressBlocksViewercould apply thewp-block-hidden-{viewport}CSS classes. - New block components —
CoreBreadcrumbs,CoreIcon, and potentiallyCoreAccordioncould be added topackages/blocks/src/blocks/. TheDefaultBlockfallback renders them viarenderedHtmlin the meantime. - Custom CSS / Dimensions — Verify whether
@wordpress/style-engine(used bygetInlineStyles.ts) handles thestyle.csssubkey for custom CSS and the newdimensions.width/dimensions.heightproperties.
Thanks for the thorough notes! WordPress 7.0 is now in our plugin CI matrix and passing, so closing this out.