-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure disable overrides button is active for image blocks with captions or links #62948
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
I considered whether this one should be backported. I think it should. Even though only plugin/beta users will be able to reproduce, plugin users might decide to deactivate the plugin, and I think core should still be able to handle this case. |
Size Change: +4 B (0%) Total Size: 1.76 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and worked as expected! 💯
…tions or links (#62948) Co-authored-by: talldan <talldanwp@git.wordpress.org> Co-authored-by: kevin940726 <kevin940726@git.wordpress.org>
I just cherry-picked this PR to the wp/6.6 branch to get it included in the next release: b9db3e1 |
What?
In #62747, the 'Enable Overrides' button was disabled for image blocks with captions or links within patterns, as they're not supported:
The code for this change also incorrectly applies the same treatment to the 'Disable overrides' version of the button when such a block already has overrides (a user would've been able to add these in the gutenberg plugin or WP6.6 beta before that PR was merged):
These users should still be able to remove overrides.
How?
Makes a small adjustment to the conditions for the button to also check the
hasOverrides
variable.Testing Instructions