[wp-trac] [WordPress Trac] #47125: Admin: clarify the "Add New" links for better accessibility

WordPress Trac noreply at wordpress.org
Tue Aug 29 20:43:35 UTC 2023


#47125: Admin: clarify the "Add New" links for better accessibility
-------------------------------------+-------------------------------------
 Reporter:  afercia                  |       Owner:  joedolson
     Type:  defect (bug)             |      Status:  accepted
 Priority:  normal                   |   Milestone:  6.4
Component:  Administration           |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-screenshots has-     |     Focuses:  ui, accessibility,
  patch needs-design-feedback        |  administration
-------------------------------------+-------------------------------------

Comment (by swissspidy):

 Looking at [[attachment:47125-patch.4.diff]], I'd slightly adjust the
 change to the docblock of `get_post_type_labels()`

 Right now it says "Default is 'Add New Type' for both hierarchical and
 non-hierarchical types." and "matching your post type. Example: `__( 'Add
 New Type' );`."

 I would change this to "Default is 'Add New Post' / 'Add New Page'" and
 "matching your post type. Example: `__( 'Add New Product' );`.",
 respectively.

 Also, that change warrants a mentioned in a dev-note somewhere so
 developers update labels in their plugins.

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


More information about the wp-trac mailing list