[wp-trac] Re: [WordPress Trac] #3450: wp_return() function for
echo/return logic
WordPress Trac
wp-trac at lists.automattic.com
Tue Apr 24 02:26:54 GMT 2007
#3450: wp_return() function for echo/return logic
-----------------------------------+----------------------------------------
Reporter: markjaquith | Owner: anonymous
Type: enhancement | Status: new
Priority: low | Milestone: 2.3
Component: Administration | Version: 2.1
Severity: minor | Resolution:
Keywords: has-patch 2nd-opinion |
-----------------------------------+----------------------------------------
Comment (by rob1n):
{{{
function wp_return( $what, $echo = true ) {
if ( $echo ) {
echo $what;
} else {
return $what;
}
}
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/3450#comment:5>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list