-
Notifications
You must be signed in to change notification settings - Fork 0
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 list block shows multiple core/navigation-link variations for WordPress 5.8 but not 5.7.2 #49
Comments
In #core-editor, in response to
I was pointed to WordPress/gutenberg#24814 which I'd commented on a long time ago, the most recent of which was WordPress/gutenberg#24814 (comment)
|
I was also advised what to do to control the display of and identify each variation.
This is what WooCommerce must have done for Product Category Link and Product Tag Link. For the Block list block, when used in blocks.wp-a2z.org, it might make sense to shortcircuit these Link variations.
or we could filter the variations for the block registration
by hooking into |
OK, so I managed to prevent the variations from being registered in the server. But the defaults are still listed in the editor, so I assume these are still being registered in the JavaScript. Now I want to see how to filter the variations to give them better names
|
The 5 default's names are: post, page, category, tag and post_format Other CPTs and taxonomies have different values for the |
I changed |
With oik-types activated there are two scenarios that need addressing, both of which are for CPTs that were defined/updated in oik-types before the missing labels were added.
Check that this solution works for post types with different singular and plural names. |
When analysing the block changes between Gutenberg 10.7.0 and the latest (11.6.0) I noted that the number of blocks and variations with WordPress 5.7.2 changed from 178 to 177 with Gutenberg 10.9.0, but with WordPress 5.8.0 there were many variations of the
core/navigation-link
block, giving 205 blocks and variations.eg in blocks.wp.a2z the additional variations were:
but the list didn't include
Custom Link - core/navigation-link
The text was updated successfully, but these errors were encountered: