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


git-svn-id: https://develop.svn.wordpress.org/trunk@40516 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2017-04-22 14:16:56 +00:00
parent 7b66ef190c
commit 58b60158c7
1 changed files with 1 additions and 1 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;