• Hi, in a widget I want to use wp_tag_cloud() and I use it like this:

    wp_tag_cloud( ‘smallest=1&largest=1&unit=em&number=18&orderby=count&order=DESC’ );

    The problem is the “orderby=count” part. In the documentation it should be exactly like that but with PHP 8 on my server I get this warning:

    Deprecated: uasort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in /www/htdocs/XXXXX/wp-includes/category-template.php on line 903

    When I remove this part, it works fine. Is that a WordPress PHP 8 compatibility problem?

    By the way, I use WordPress 5.9

    • This topic was modified 2 years, 10 months ago by ksvgn2018.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp_tag_cloud() and PHP 8’ is closed to new replies.