[wp-trac] [WordPress Trac] #60045: Change to add_new label displays wrong label for old post types

WordPress Trac noreply at wordpress.org
Tue Aug 13 15:28:33 UTC 2024


#60045: Change to add_new label displays wrong label for old post types
----------------------------+----------------------------
 Reporter:  smerriman       |       Owner:  rcreators
     Type:  defect (bug)    |      Status:  assigned
 Priority:  normal          |   Milestone:  6.7
Component:  Administration  |     Version:  6.4
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  accessibility
----------------------------+----------------------------

Comment (by joedolson):

 It's a sound argument that having two keys 'add_new' and 'add_new_item'
 implies that the two should be used differently; they look like they
 should be 'Add New' and 'Add new {item}', which makes sense to me.

 In which case, yes, we should change core to use`add_new_item` and should
 change the fallback for add_new to be just 'Add New'.

 We should also add documentation to indicate that use of the 'add_new' key
 is discouraged, but retained for backwards compatibility.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60045#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list