Skip to content

Conversation

@laurelfulford
Copy link
Contributor

All Submissions:

Changes proposed in this Pull Request:

In #1968, we hid the new 'Hide' option for blocks in the Newsletter posts since the blocks weren't hidden in the sent newsletters.

In WordPress/gutenberg#73432, the support was renamed from blockVisibility to visibility to avoid clashes with the Block Visibility plugin; this caused our fix to stop working.

This PR updates the name to match.

How to test the changes in this Pull Request:

  1. Follow the test steps in fix: remove 'hide block' option for Newsletters #1968 on a site running WP 6.9 and confirm that the 'Hide' option doesn't appear in the block toolbar.

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

@codecov
Copy link

codecov bot commented Dec 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 24.80%. Comparing base (ef4128e) to head (de18d64).
⚠️ Report is 6 commits behind head on release.

Additional details and impacted files
@@            Coverage Diff             @@
##             release    #1991   +/-   ##
==========================================
  Coverage      24.80%   24.80%           
  Complexity      2926     2926           
==========================================
  Files             50       50           
  Lines          10355    10355           
==========================================
  Hits            2569     2569           
  Misses          7786     7786           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@dkoo dkoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works!

@github-actions github-actions bot added [Status] Approved Ready to merge and removed [Status] Needs Review labels Dec 3, 2025
@laurelfulford
Copy link
Contributor Author

Thanks @dkoo!

As an aside, I spent hours trying to figure out why the same setting wasn't working in the Newspack Plugin before I stumbled across the name change... 😆

@laurelfulford laurelfulford merged commit 1e9cf1d into release Dec 3, 2025
11 checks passed
@laurelfulford laurelfulford deleted the fix/rename-visibility-support branch December 3, 2025 21:54
matticbot pushed a commit that referenced this pull request Dec 3, 2025
## [3.25.2](v3.25.1...v3.25.2) (2025-12-03)

### Bug Fixes

* rename blockVisibility to visibility ([#1991](#1991)) ([1e9cf1d](1e9cf1d))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 3.25.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants