[wp-trac] [WordPress Trac] #13399: Code Improvement: Consider print instead of echo
WordPress Trac
wp-trac at lists.automattic.com
Sat May 15 09:03:08 UTC 2010
#13399: Code Improvement: Consider print instead of echo
--------------------------+-------------------------------------------------
Reporter: hakre | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: General | Version: 3.0
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
There is a lot of {{{echo}}} in WP sourcecode. Instead of calling a
function it is better use the intended language construct for doing
output: print
Learn about print:
http://www.php.net/manual/en/function.print.php
Compare to understand the differences to echo:
http://www.php.net/manual/en/function.echo.php
Normally, echo calls should be easy to replace with print.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13399>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list