[wp-trac] [WordPress Trac] #64272: Block visibility: new support key conflicts with Block Visibility plugin

WordPress Trac noreply at wordpress.org
Tue Nov 18 17:38:42 UTC 2025


#64272: Block visibility: new support key conflicts with Block Visibility plugin
--------------------------+-----------------------------
 Reporter:  dlh           |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The [https://wordpress.org/plugins/block-visibility/ Block Visibility
 plugin] predates the new block hiding functionality in WordPress 6.9,
 [https://github.com/WordPress/gutenberg/issues/50756#issuecomment-3091262534
 as was discussed early in the new feature's development].

 While the current core functionality and the plugin's functionality can
 complement each other, they conflict in their use of the `blockVisibility`
 block support key.

 The practical consequence of this conflict that I experienced is that
 isn't possible to turn off core's block-hiding functionality for a
 particular block (via `register_block_type_args`) while also allowing the
 Block Visibility plugin to apply to that block. The `blockVisibility`
 support key will be set to `true` by the plugin, and so core's UI will be
 turned back on. As things stand, when 6.9 is released, my sites that use
 the plugin would begin to see two ways to hide a block that behave
 differently, and as far as I can tell, I can't prevent it.

 It would be disappointing for this conflict to make it into core since it
 was an avoidable conflict and since it's not too late to fix it. The
 original Block Visibility plugin has 40,000 installations, which might not
 be large, but it's also not small. But, if that's what's going to happen,
 I think it would be respectful to acknowledge it.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64272>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list