Edge case: The editors break if the pattern category taxonomy is unregistered #67060
Open
3 of 6 tasks
Labels
[Priority] Low
Used to indicate that the issue at hand isn't a top priority to address and can be handled later
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
The
wp_pattern_category
is a taxonomy registered on thewp_block
post type.It can be unregistered using unregister_taxonomy_for_object_type
If the taxonomy is unregistered, the editors break with the following JavaScript error:
I am not sure what the use case would be: But since unregistering is supported by WordPress, the editors should not break if it happens.
Step-by-step reproduction instructions
Unregister the taxonomy. For example, copy the following to functions.php in your active theme:
Create a new post. Confirm if there is a JavaScript error.
Screenshots, screen recording, code snippet
No response
Environment info
I am using WordPress 6.7 with Gutenberg trunk and:
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: