Posts, Post Types: Correct the fallback value for the label_count argument of register_post_status().

While using `_n_noop()` here is technically incorrect, it does correct the fallback value as its usage in `translate_nooped_plural()` expects a correctly formatted associative array.

Props xrmx

Fixes #38686

Built from https://develop.svn.wordpress.org/trunk@40516


git-svn-id: http://core.svn.wordpress.org/trunk@40392 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2017-04-22 14:17:42 +00:00
parent c7058c739d
commit 8d3d439684
2 changed files with 2 additions and 2 deletions

View File

@ -815,7 +815,7 @@ function register_post_status( $post_status, $args = array() ) {
$args->label = $post_status;
if ( false === $args->label_count )
$args->label_count = array( $args->label, $args->label );
$args->label_count = _n_noop( $args->label, $args->label );
$wp_post_statuses[$post_status] = $args;

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-alpha-40515';
$wp_version = '4.8-alpha-40516';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.