mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Register the auto-draft post status. see #11889
git-svn-id: http://svn.automattic.com/wordpress/trunk@12992 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b9bc395359
commit
ec8ba1ccd2
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user