[wp-trac] [WordPress Trac] #20900: Throw an error in `get_default_post_to_edit` if the specified post type is not defined.
WordPress Trac
wp-trac at lists.automattic.com
Sun Jun 10 23:07:25 UTC 2012
#20900: Throw an error in `get_default_post_to_edit` if the specified post type is
not defined.
-----------------------------+-----------------------------------
Reporter: georgestephanis | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Types | Version:
Severity: minor | Keywords: has-patch 2nd-opinion
-----------------------------+-----------------------------------
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20900>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list