mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-25 17:51:27 +01:00
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:
parent
c7058c739d
commit
8d3d439684
@ -815,7 +815,7 @@ function register_post_status( $post_status, $args = array() ) {
|
|||||||
$args->label = $post_status;
|
$args->label = $post_status;
|
||||||
|
|
||||||
if ( false === $args->label_count )
|
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;
|
$wp_post_statuses[$post_status] = $args;
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user