[wp-trac] Re: [WordPress Trac] #5155: wp_tag_cloud('format=array') does not return array

WordPress Trac wp-trac at lists.automattic.com
Sun Oct 7 07:42:00 GMT 2007


#5155: wp_tag_cloud('format=array') does not return array
------------------------------------+---------------------------------------
 Reporter:  andrewflanagan          |        Owner:  ryan
     Type:  defect                  |       Status:  new 
 Priority:  low                     |    Milestone:  2.4 
Component:  General                 |      Version:  2.3 
 Severity:  minor                   |   Resolution:      
 Keywords:  tags, tag cloud, array  |  
------------------------------------+---------------------------------------
Changes (by westi):

  * milestone:  2.3.1 => 2.4

Comment:

 Replying to [comment:3 Otto42]:
 > No, I gotta agree with the ticket. wp_generate_tag_cloud requires an
 input of tags from get_tags, which wp_tag_cloud does. Forcing them to use
 it directly adds more potential for error and doesn't necessarily allow
 for the result to always be the same data that wp_tag_cloud will create
 with the same parameters. So allowing format to be 'array' should return
 the array.
 >
 > Anyway, it's an easy patch. Attached.

 Thanks for that.

 I guess I should have read the code a bit closer last night :-)

 However that patch isn't quite correct I don't think.

 Attaching a new one for testing.

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


More information about the wp-trac mailing list