[wp-trac] [WordPress Trac] #63293: "Add new post" wording change/regression?
WordPress Trac
noreply at wordpress.org
Wed Apr 16 11:46:09 UTC 2025
#63293: "Add new post" wording change/regression?
-------------------------------+-----------------------------
Reporter: sitebolts | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 6.8
Severity: major | Keywords:
Focuses: |
-------------------------------+-----------------------------
In WordPress 6.8, it appears that the 'add_new' arg for register_post_type
is no longer being used on the menu item.
Instead, the 'add_new_item' arg is now being used for both the menu item
and page title.
If 'add_new_item' isn't defined, then both locations will default to
saying "Add Post", which sounds weirdly nonspecific for custom post types
even though they're technically "posts".
We don't see this listed in the changelog, and the register_post_type docs
still mention 'add_new' without any kind of mention of deprecation, so we
think this might have been an accidental regression?
Is it no longer possible to use a separate wording for the two locations?
We'd like to have our menu item say "Add New" and our page title say "Add
New Location" rather than have them be the same wording, which was
previously possible.
Example code:
$labels =
[
'add_new' => __('Add New'), //This is no longer being used?
]
$args =
[
'labels' => $labels,
]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63293>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list