[wp-trac] [WordPress Trac] #55876: Use consistent context for the "Add New" string when referring to media

WordPress Trac noreply at wordpress.org
Mon May 30 13:03:00 UTC 2022


#55876: Use consistent context for the "Add New" string when referring to media
----------------------------+----------------------------------------
 Reporter:  SergeyBiryukov  |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  6.1
Component:  I18N            |    Version:
 Severity:  normal          |   Keywords:  needs-patch good-first-bug
  Focuses:                  |
----------------------------+----------------------------------------
 Background: #21391.

 As of [21948], the built-in `attachment` post type is registered with this
 string as the `add_new` label:
 {{{
 _x( 'Add New', 'add new media' )
 }}}

 This is the only place in core where the `add new media` context is used.
 All the other instances of this string, including the admin menu, use the
 `file` context:
 {{{
 _x( 'Add New', 'file' )
 }}}

 As far as I can tell, there is no reason for the context of these strings
 to be different, and it seems like an oversight. For consistency, the
 former string should use the `file` context as well.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55876>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list