-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Block Editor: Deprecate 'BlockColorsStyleSelector' component #40502
Conversation
Size Change: +54 B (0%) Total Size: 1.23 MB
ℹ️ View Unchanged
|
I think this note should go in Block Editor misc post. Dev NoteWordPress 6.1 will deprecate the |
alternative: 'block supports API', | ||
since: '6.1', | ||
version: '6.3', | ||
} ); |
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.
Hey, is it time to remove this API or if judged too impactful, consider extending the version.
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.
I thought we were no longer removing deprecated components and APIs.
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.
I'm not sure we've came to a concrete decision yet. If you want to keep it, then update the version maybe.
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.
I don’t feel a strong attachment to this component, but some people have strong feelings on public API removals.
What?
PR deprecates
BlockColorsStyleSelector
component.Why?
It was introduced in #19894 but hasn't been used since #23044. Block developers should prefer using Block Supports API for colors.
WP.org plugin directory search yields a single result - https://wpdirectory.net/search/01G15G70PDWRPHM36Z464NP7PE.
Testing Instructions
You can use the following code to see deprecation message (please ignore errors):