Register the auto-draft post status. see #11889

git-svn-id: https://develop.svn.wordpress.org/trunk@12992 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-02-06 17:09:34 +00:00
parent 13b54b44d8
commit 0b7de0491f
1 changed files with 6 additions and 0 deletions

View File

@ -88,6 +88,12 @@ function create_initial_post_types() {
'_builtin' => true,
'label_count' => _n_noop('Trash <span class="count">(%s)</span>', 'Trash <span class="count">(%s)</span>')
) );
register_post_status( 'auto-draft', array( 'label' => _x('Auto-Draft', 'post'),
'exclude_from_search' => true,
'_builtin' => true,
'label_count' => _n_noop('Auto-Draft <span class="count">(%s)</span>', 'Auto-Drafts <span class="count">(%s)</span>')
) );
}
add_action( 'init', 'create_initial_post_types', 0 ); // highest priority