[wp-trac] [WordPress Trac] #13399: Code Improvement: Consider print instead of echo

WordPress Trac wp-trac at lists.automattic.com
Sat May 15 13:36:05 UTC 2010


#13399: Code Improvement: Consider print instead of echo
--------------------------+-------------------------------------------------
 Reporter:  hakre         |        Owner:         
     Type:  defect (bug)  |       Status:  closed 
 Priority:  normal        |    Milestone:         
Component:  General       |      Version:         
 Severity:  normal        |   Resolution:  invalid
 Keywords:                |  
--------------------------+-------------------------------------------------

Comment(by nacin):

 Replying to [comment:3 hakre]:
 > Therefore #13395 /
 [[http://core.trac.wordpress.org/changeset/14647#file13 Change]] is pretty
 useless to replace echo with a function call containing echo only. But
 that only as sidenote here.

 It's a shortcut for the however many thousand times we're translating
 strings. Not unlike `__` instead of `translate`, `_x` instead of
 `translate_with_context`,`_e` instead of `echo translate()`, `_n` instead
 of `ngettext`, `_nx` instead of `ngettext_with_context`, etc.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13399#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list