[wp-trac] [WordPress Trac] #58138: For echo the translated string, use _e() instead of __()

WordPress Trac noreply at wordpress.org
Mon Apr 24 21:26:27 UTC 2023


#58138: For echo the translated string, use _e() instead of __()
-------------------------+-------------------------------
 Reporter:  mujuonly     |       Owner:  audrasjb
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  6.3
Component:  I18N         |     Version:
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:  coding-standards
-------------------------+-------------------------------
Changes (by audrasjb):

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


Comment:

 In [changeset:"55684" 55684]:
 {{{
 #!CommitTicketReference repository="" revision="55684"
 I18N: Use correct translation function in `wp-admin/includes/media.php`.

 This changeset replaces `echo __()` with the appropriate `_e()` function.
 It also ensures the punctuation is included in the translation string.

 Props mujuonly, audrasjb, vladytimy, krupalpanchal, mukesh27.
 Fixes #58138.
 }}}

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


More information about the wp-trac mailing list