[wp-trac] [WordPress Trac] #63620: Remove translator comments when hidden text matches visible text

WordPress Trac noreply at wordpress.org
Sun Sep 28 22:36:46 UTC 2025


#63620: Remove translator comments when hidden text matches visible text
------------------------------+----------------------------
 Reporter:  sabernhardt       |       Owner:  joedolson
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  6.9
Component:  I18N              |     Version:  6.2
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  accessibility
------------------------------+----------------------------
Changes (by joedolson):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"60805" 60805]:
 {{{
 #!CommitTicketReference repository="" revision="60805"
 I18n: Combine duplicate text strings into variables.

 In cases where a string is used both for a visible label and a screen
 reader text label,  the screen reader text should never be different from
 the visible label. To help ensure this doesn't happen, use only a single
 string. The associated screen reader text comments are no longer required.

 This is also true for a few cases where there are strings in contexts
 where variables can't be used. In these cases, the screen reader text
 comments are also removed.

 Props sabernhardt, swissspidy, audrasjb, joedolson.
 Fixes #63620.
 }}}

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


More information about the wp-trac mailing list