mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00: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 git-svn-id: https://develop.svn.wordpress.org/trunk@40516 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user