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

WordPress Trac noreply at wordpress.org
Sun Apr 16 08:11:47 UTC 2023


#58138: For echo the translated string, use _e() instead of __()
------------------------------+-----------------------------
 Reporter:  mujuonly          |      Owner:  mujuonly
     Type:  enhancement       |     Status:  assigned
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  General           |    Version:  6.2
 Severity:  normal            |   Keywords:  needs-patch
  Focuses:  coding-standards  |
------------------------------+-----------------------------
 If you want to echo the translated string, then you will be using `_e()`
 and when you just want to have the translated string, then you will be
 using `__()`.

 Used `echo __( 'Search Media' )` in /wp-admin/includes/media.php

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


More information about the wp-trac mailing list