bobbingwide / oik-types

oik custom content type manager
http://www.oik-plugins.com/oik-plugins/oik-types/
GNU General Public License v2.0
1 stars 0 forks source link

Cater for new labels in CPT registration #21

Closed bobbingwide closed 3 years ago

bobbingwide commented 3 years ago

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".

For more information, and a screenshot, see https://github.com/bobbingwide/oik-blocks/issues/49

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.

https://github.com/bobbingwide/oik/issues/183 addresses the problem for post types registered using bw_register_post_type(), but doesn't cater for CPTs and taxonomies that have been created / updated using oik-types.

Requirement

Solution

At this point in time it doesn't seem necessary to remove the old labels from the bw_types option.

bobbingwide commented 3 years ago

Delivered in v2.1.0