From ec8ba1ccd2cca20492e53d8bfd6c9f0a442d2c0b Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 6 Feb 2010 17:09:34 +0000 Subject: [PATCH] Register the auto-draft post status. see #11889 git-svn-id: http://svn.automattic.com/wordpress/trunk@12992 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wp-includes/post.php b/wp-includes/post.php index c8dce0b19..1e291cea0 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -88,6 +88,12 @@ function create_initial_post_types() { '_builtin' => true, 'label_count' => _n_noop('Trash (%s)', 'Trash (%s)') ) ); + + register_post_status( 'auto-draft', array( 'label' => _x('Auto-Draft', 'post'), + 'exclude_from_search' => true, + '_builtin' => true, + 'label_count' => _n_noop('Auto-Draft (%s)', 'Auto-Drafts (%s)') + ) ); } add_action( 'init', 'create_initial_post_types', 0 ); // highest priority