[wp-trac] [WordPress Trac] #65389: Block Visibility: Keep hide-everywhere working after a block opts out of visibility support
WordPress Trac
noreply at wordpress.org
Tue Jun 2 10:19:54 UTC 2026
#65389: Block Visibility: Keep hide-everywhere working after a block opts out of
visibility support
--------------------------+-----------------------------
Reporter: wildworks | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 7.0.1
Component: Editor | Version:
Severity: normal | Keywords: gutenberg-merge
Focuses: |
--------------------------+-----------------------------
- Gutenberg Issue: https://github.com/WordPress/gutenberg/issues/78701
- Gutenberg PR: https://github.com/WordPress/gutenberg/pull/78780
- [https://make.wordpress.org/core/2026/03/15/block-visibility-in-
wordpress-7-0/ Block Visibility in WordPress 7.0]
The block content is not displayed on the front end when the block
supports `visibility` and `metadata.blockVisibility` is `true`.
Previously, the Shortcode block and the HTML block supported `visibility`.
However, [https://github.com/WordPress/gutenberg/pull/76138 this support
was removed] because it was found that the responsive hiding feature
introduced in WordPress 7.1 did not work with these blocks.
As a result, even if these blocks were already hidden in WordPress 6.9,
their content would unintentionally be displayed upon updating to
WordPress 7.0.
Since this clearly goes against the user's intent, I propose that we do
not display the block content on the front end whenever
`metadata.blockVisibility` is `true`, regardless of whether the
`visibility` block supports.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65389>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list