Opened 12 months ago
#20900 new defect (bug)
Throw an error in `get_default_post_to_edit` if the specified post type is not defined.
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Post Types | Version: | |
| Severity: | minor | Keywords: | has-patch 2nd-opinion |
| Cc: |
Description
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.
Attachments (1)
Note: See
TracTickets for help on using
tickets.