[wp-trac] Re: [WordPress Trac] #9010: wp_tag_cloud() should not echo if format='array'

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 2 02:08:27 GMT 2009


#9010: wp_tag_cloud() should not echo if format='array'
--------------------------+-------------------------------------------------
 Reporter:  scribu        |        Owner:  anonymous
     Type:  defect (bug)  |       Status:  new      
 Priority:  normal        |    Milestone:  2.7.1    
Component:  General       |      Version:  2.7      
 Severity:  minor         |   Resolution:           
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------
Comment (by azaozz):

 Filosofo is right, if it's set as array in `$args`, it returns it before
 getting to the echo anyways. Perhaps can add another arg there
 {{{
 if ( 'array' == $args['format'] || ( isset($args['return']) &&
 $args['return'] ) )
     return $return;
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/9010#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list