wp_block post type adds unnecessary rewrite rules #8233
Labels
[Feature] Synced Patterns
Related to synced patterns (formerly reusable blocks)
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
[Type] Bug
An existing feature does not function as intended
Describe the bug
When installing Gutenberg, it adds a bunch of unnecessary rewrite rules for the
wp_block
post type.To Reproduce
Steps to reproduce the behavior:
wp rewrite list
Expected behavior
No rewrite rules are added.
For this,
rewrite
needs to be explicitly set tofalse
when registering a post type.See https://developer.wordpress.org/reference/functions/register_post_type/
The text was updated successfully, but these errors were encountered: