[wp-trac] [WordPress Trac] #10393: wp_tag_cloud('order=RAND') broken with PHP >= 5.2.10

WordPress Trac wp-trac at lists.automattic.com
Sun Jul 12 21:49:13 UTC 2009


#10393: wp_tag_cloud('order=RAND') broken with PHP >= 5.2.10
--------------------------+-------------------------------------------------
 Reporter:  Joern_W       |       Owner:       
     Type:  defect (bug)  |      Status:  new  
 Priority:  normal        |   Milestone:  2.9  
Component:  General       |     Version:  2.8.1
 Severity:  normal        |    Keywords:       
--------------------------+-------------------------------------------------
Changes (by azaozz):

  * milestone:  Unassigned => 2.9


Comment:

 The patch contains the suggested change with a small improvement. When
 sorting randomly what's the point of sorting by count first?

 Also not sure how `apply_filters( 'tag_cloud_sort', $tags, $args );` is
 supposed to be used. Is it there so plugins can "re-sort" the already
 sorted array? Perhaps it needs to be moved up and let a plugin replace the
 sorting methods, not add more sorting.

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


More information about the wp-trac mailing list