[wp-trac] [WordPress Trac] #3450: wp_return() function for echo/return logic

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 7 04:43:39 GMT 2006


#3450: wp_return() function for echo/return logic
----------------------------+-----------------------------------------------
 Reporter:  markjaquith     |       Owner:  anonymous            
     Type:  enhancement     |      Status:  new                  
 Priority:  low             |   Milestone:  2.1                  
Component:  Administration  |     Version:  2.1                  
 Severity:  minor           |    Keywords:  has-patch 2nd-opinion
----------------------------+-----------------------------------------------
 Elegant echo/return logic wrapper by Andy Skelton

 Look at all the red in the patch!

 {{{
 // Implementation within function:  return wp_return($func_data,
 $echo_flag);
 function wp_return($data, $echo = true) {
         echo ( $echo ) ? $data : '';
         return $data;
 }
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3450>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list