From 0b7de0491f781089ec4f89c3a20e3a815ce4c7bc Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 6 Feb 2010 17:09:34 +0000 Subject: [PATCH] Register the auto-draft post status. see #11889 git-svn-id: https://develop.svn.wordpress.org/trunk@12992 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wp-includes/post.php b/wp-includes/post.php index c8dce0b197..1e291cea05 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