mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 23:27:39 +02:00
Fix a PHP 8 deprecation warning in category-template.php
uasort()
helper.
Props Webrocker, jigar-bhanushali, jrf, audrasjb, costdev. Fixes #57358. See #56790. Built from https://develop.svn.wordpress.org/trunk@55214 git-svn-id: http://core.svn.wordpress.org/trunk@54747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
eff6618cbb
commit
e3e4d51e11
@ -1084,10 +1084,10 @@ function _wp_object_name_sort_cb( $a, $b ) {
|
||||
*
|
||||
* @param object $a The first object to compare.
|
||||
* @param object $b The second object to compare.
|
||||
* @return bool Whether the count value for `$a` is greater than the count value for `$b`.
|
||||
* @return int The count value for `$a` minus the count value for `$b` (less than, equal to, or greater than zero).
|
||||
*/
|
||||
function _wp_object_count_sort_cb( $a, $b ) {
|
||||
return ( $a->count > $b->count );
|
||||
return ( $a->count - $b->count );
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.2-alpha-55213';
|
||||
$wp_version = '6.2-alpha-55214';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user