[wp-trac] [WordPress Trac] #21094: Remove unnecessary 'menu_name' fallback in get_post_type_labels()
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 28 07:54:32 UTC 2012
#21094: Remove unnecessary 'menu_name' fallback in get_post_type_labels()
--------------------------+-----------------------------
Reporter: evansolomon | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Types | Version:
Severity: normal | Keywords: has-patch
--------------------------+-----------------------------
`get_post_type_labels()` sets the fallback for the `menu_name` label to
the `name` label. Then it calls `_get_custom_object_labels()`, which does
the same thing along with a bunch of similar fallbacks.
This is an artifact of #14832, which lead to r16251, then to r16268, which
made the fallback in `get_post_type_labels()` unnecessary.
We can just remove the statement from `get_post_type_labels()` and nothing
will change (except WordPress will be just a bit simpler).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21094>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list