Opened 12 months ago
Throw an error in `get_default_post_to_edit` if the specified post type is not defined.
|Reported by:||georgestephanis||Owned by:|
Currently get_default_post_to_edit will generate a post with the specified post type, even if it doesn't exist. Let's give it a chance to do something else.
If this is conceptually a good idea, also do it during wp_insert_post() and other similar functions.