Description
Following the new Visual Revisions improvements introduced in the WordPress 7.1 testing cycle, there is a visual regression in the diff highlighting engine when previewing an autosave notice on a clean core installation.
Expected Behavior
Entering the modern Visual Revisions side-by-side panel layout should isolate only the specific blocks containing newly altered or freshly added content, highlighting them with a green border and background while leaving untouched baseline content un-highlighted.
Actual Behavior
The visual comparison canvas mistakenly applies green addition highlights across the entire block list. The unchanged baseline text block (e.g., the default "Welcome to WordPress..." text), the newly added text block, and even a trailing empty block are all wrapped in green addition borders simultaneously. This failure to isolate state modifications completely defeats the clarity and utility of the visual diff view.
Step-by-step reproduction instructions
- Set up a clean test site running WordPress 7.1-beta1 with NO active plugins (native core environment).
- Open an existing, published post (such as the default "Hello world!" post which contains the baseline "Welcome to WordPress..." paragraph block).
- Insert a new Paragraph block below the baseline text and type "Autosave test content". Do not touch or modify the original baseline paragraph.
- Force a server autosave via the developer console using
wp.data.dispatch('core/editor').autosave();.
- Immediately refresh the browser tab without manually clicking the core update button.
- On the resulting admin warning notice banner, click the "View the autosave" link to enter the Visual Revisions interface.
- Observe the visual diff canvas highlights.
Screenshots, screen recording, code snippet
Environment info
- WordPress Core: 7.1-beta1
- Gutenberg Plugin: None (Deactivated / Core Native)
- Configuration: Clean install via WordPress Playground
- Browsers Tested: Chrome (Latest)
- OS: macOS
Context / Related:
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
Description
Following the new Visual Revisions improvements introduced in the WordPress 7.1 testing cycle, there is a visual regression in the diff highlighting engine when previewing an autosave notice on a clean core installation.
Expected Behavior
Entering the modern Visual Revisions side-by-side panel layout should isolate only the specific blocks containing newly altered or freshly added content, highlighting them with a green border and background while leaving untouched baseline content un-highlighted.
Actual Behavior
The visual comparison canvas mistakenly applies green addition highlights across the entire block list. The unchanged baseline text block (e.g., the default "Welcome to WordPress..." text), the newly added text block, and even a trailing empty block are all wrapped in green addition borders simultaneously. This failure to isolate state modifications completely defeats the clarity and utility of the visual diff view.
Step-by-step reproduction instructions
wp.data.dispatch('core/editor').autosave();.Screenshots, screen recording, code snippet
Environment info
Context / Related:
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.