[wp-trac] [WordPress Trac] #63293: "Add new post" wording change/regression?
WordPress Trac
noreply at wordpress.org
Fri Apr 18 23:25:02 UTC 2025
#63293: "Add new post" wording change/regression?
-------------------------------+-----------------------
Reporter: sitebolts | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 6.8.1
Component: Posts, Post Types | Version: 6.8
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------------+-----------------------
Comment (by jorbin):
The mentions of `add_new` and `add_new_item` in are a part of the user
contributed examples. I think that the docs team manages those, I would
suggest consulting with them.
The documentation of the labels in
[https://core.trac.wordpress.org/browser/tags/6.8/src/wp-
includes/post.php#L2021 get_post_type_labels] is correct and as soon as
the parsing is complete, that will be updated.
[https://wordpress.slack.com/archives/C02RQBWTW/p1745009355080139?thread_ts=1744823393.226309&cid=C02RQBWTW
I've asked someone to look into it].
I can't find any uses of `labels->add_new` in core as of now, which makes
me feel like it is essentially soft deprecated. I think it should get
removed from the documentation (with a comment somewhere so it doesn't get
reused for a new purpose) and a new argument should be added for the menu
along the lines of `add_new_menu_label` that can default to `add_new_item`
but allow folks to override it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63293#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list