You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since WordPress 5.8, a variation of the core/navigation-link block is registered in the server for each Custom Post Type and Taxonomy where the show_in_nav_menus attribute is true.
For CPTs registered using bw_register_post_type(), many of these variations were indistiguishable in the block editor. In blocks.wp-a2z.org I had 16 variations of "Post Link".
This is because the strings being used to generate the variation name and description were not defined in the post type's / taxonomy's labels array.
Since WordPress 5.8, a variation of the
core/navigation-link
block is registered in the server for each Custom Post Type and Taxonomy where theshow_in_nav_menus
attribute is true.For CPTs registered using
bw_register_post_type()
, many of these variations were indistiguishable in the block editor. In blocks.wp-a2z.org I had 16 variations of "Post Link".This is because the strings being used to generate the variation name and description were not defined in the post type's / taxonomy's
labels
array.For more information, and a screenshot, see bobbingwide/oik-blocks#49
Requirement
Solution
bw_default_labels()
to additem_link
anditem_link_description
.Notes:
bw_default_labels()
is used to create labels for both post types and taxonomies.The text was updated successfully, but these errors were encountered: