Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#56838 closed defect (bug) (duplicate)

Deprecated uasort callback in wp_generate_tag_cloud()

Reported by: skithund's profile skithund Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords: php8 has-patch close
Focuses: Cc:

Description

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

Change History (7)

This ticket was mentioned in PR #3479 on WordPress/wordpress-develop by @skithund.


3 years ago
#1

  • Keywords has-patch added

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

Trac ticket: https://core.trac.wordpress.org/ticket/56838

#2 @skithund
3 years ago

  • Summary changed from Fix deprecated uasort callback in wp_generate_tag_cloud() to Deprecated uasort callback in wp_generate_tag_cloud()

#3 @SergeyBiryukov
3 years ago

  • Milestone changed from Awaiting Review to 6.2

This ticket was mentioned in Slack in #core by mukeshpanchal27. View the logs.


3 years ago

#5 @skithund
3 years ago

  • Keywords close added

Fixed in [55214] / #57358

#6 @costdev
3 years ago

  • Milestone 6.2 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #57358.

#7 @SergeyBiryukov
3 years ago

It looks like this ticket was submitted earlier that #57358. While it also was on the 6.2 milestone, it somehow got overlooked, and the other one got more traction. Sorry for that!

I have updated the props for [55214] in the Core Props tool on make/core to include the props from this ticket too.

Note: See TracTickets for help on using tickets.