Don't translate internal post stati. props nbachiyski, fixes #13024.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14262 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-04-27 22:36:46 +00:00
parent e40572be40
commit 1143a84f7f
1 changed files with 3 additions and 5 deletions

View File

@ -111,17 +111,15 @@ function create_initial_post_types() {
'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'),
register_post_status( 'auto-draft', array( 'label' => 'auto-draft',
'internal' => true,
'_builtin' => true, /* internal use only. */
'label_count' => _n_noop('Auto-Draft <span class="count">(%s)</span>', 'Auto-Drafts <span class="count">(%s)</span>')
) );
register_post_status( 'inherit', array( 'label' => _x('Inherit', 'post'),
register_post_status( 'inherit', array( 'label' => 'inherit',
'internal' => true,
'exclude_from_search' => false,
'_builtin' => true, /* internal use only. */
'label_count' => _n_noop('Inherit <span class="count">(%s)</span>', 'Inherit <span class="count">(%s)</span>')
) );
}
add_action( 'init', 'create_initial_post_types', 0 ); // highest priority
@ -593,7 +591,7 @@ function register_post_status($post_status, $args = array()) {
$args->label = $post_status;
if ( false === $args->label_count )
$args->label_count = $args->label;
$args->label_count = array( $args->label, $args->label );
$wp_post_statuses[$post_status] = $args;