[wp-trac] [WordPress Trac] #38686: Incorrect fallback value for label_count when registering a custom post status
WordPress Trac
noreply at wordpress.org
Sat Apr 22 14:16:58 UTC 2017
#38686: Incorrect fallback value for label_count when registering a custom post
status
-------------------------------------------------+-------------------------
Reporter: johnbillion | Owner:
Type: defect (bug) | johnbillion
Priority: normal | Status: closed
Component: Posts, Post Types | Milestone: 4.8
Severity: normal | Version:
Keywords: good-first-bug has-patch has-unit- | Resolution: fixed
tests | Focuses:
| administration
-------------------------------------------------+-------------------------
Changes (by johnbillion):
* owner: => johnbillion
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"40516"]:
{{{
#!CommitTicketReference repository="" revision="40516"
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
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38686#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list