[wp-trac] [WordPress Trac] #56838: Fix deprecated uasort callback in wp_generate_tag_cloud()

WordPress Trac noreply at wordpress.org
Mon Oct 17 06:48:49 UTC 2022


#56838: Fix deprecated uasort callback in wp_generate_tag_cloud()
--------------------------+-----------------------------
 Reporter:  skithund      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:
 Severity:  normal        |   Keywords:  php8
  Focuses:                |
--------------------------+-----------------------------
 Sorting by `count` in tag cloud generates deprecation error in PHP 8.0.

 `uasort(): Returning bool from comparison function is deprecated, return
 an integer less than, equal to, or greater than zero`

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56838>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list