Block Editor: Deprecate 'BlockColorsStyleSelector' component#40502
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.
Hey, is it time to remove this API or if judged too impactful, consider extending the version.
There was a problem hiding this comment.
I thought we were no longer removing deprecated components and APIs.
There was a problem hiding this comment.
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.
I don’t feel a strong attachment to this component, but some people have strong feelings on public API removals.
What?
PR deprecates
BlockColorsStyleSelectorcomponent.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):