From 68db25c00cd8f24e40ae9714ca15a1b3b021edcc Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 27 Apr 2010 22:36:46 +0000 Subject: [PATCH] Don't translate internal post stati. props nbachiyski, fixes #13024. git-svn-id: https://develop.svn.wordpress.org/trunk@14262 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 394843d92e..2674f70eee 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -111,17 +111,15 @@ function create_initial_post_types() { 'label_count' => _n_noop('Trash (%s)', 'Trash (%s)') ) ); - 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 (%s)', 'Auto-Drafts (%s)') ) ); - 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 (%s)', 'Inherit (%s)') ) ); } 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;