-
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 API: Allow overriding the category for block variations #28482
Conversation
@@ -71,19 +71,6 @@ export const searchBlockItems = ( | |||
find( categories, { slug: item.category } )?.title, | |||
getCollection: ( item ) => | |||
collections[ item.name.split( '/' )[ 0 ] ]?.title, | |||
getVariations: ( { variations = [] } ) => |
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.
No longer referenced in the code as of #25182.
Size Change: -57 B (0%) Total Size: 1.37 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.
LGTM, thanks @gziolo 👍
@gziolo Sorry for the delayed response on this. Appreciate you pushing this through! |
Description
Raised #16283 (comment) in by @badfeather:
This PR was opened to add a
category
field to the Block Variations API. It looks like block variations are now discovered with a selector as of #25182 from @youknowriad. So the rest of the changes was straightforward.How has this been tested?
I modified the category in the variations defined for the Navigation block to test.
Screenshots
Types of changes
Checklist: