[wp-trac] Re: [WordPress Trac] #9214: wp_tag_cloud 'RAND' sorting broken if only one tag exist

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 23 07:40:41 GMT 2009


#9214: wp_tag_cloud 'RAND' sorting broken if only one tag exist
--------------------------+-------------------------------------------------
 Reporter:  rognilss      |       Owner:  anonymous       
     Type:  defect (bug)  |      Status:  new             
 Priority:  normal        |   Milestone:  2.8             
Component:  Template      |     Version:  2.7.1           
 Severity:  normal        |    Keywords:  has-patch commit
--------------------------+-------------------------------------------------
Changes (by DD32):

  * keywords:  tag cloud rand => has-patch commit
  * component:  General => Template


Comment:

 When asking for 1 item returns from array_rand(), PHP returns a string, in
 the case of multiple results, then an array is returned. Casting to an
 array will work in both of these cases.

 Candidate for 2.7.2

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9214#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list