From cb4b7b6a8ba9be9f8b3ad1645ac948a221c89e12 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 4 Feb 2023 15:18:16 +0000 Subject: [PATCH] Docs: Use consistent format for the `@return` tags in `_wp_object_name_sort_cb()` and `_wp_object_count_sort_cb()`. Both functions are used as a callback for `uasort()`. Follow-up to [36013], [55214]. See #57358, #56792. Built from https://develop.svn.wordpress.org/trunk@55222 git-svn-id: http://core.svn.wordpress.org/trunk@54755 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/category-template.php | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index 969ea9c67c..dcc32c417f 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -1084,7 +1084,8 @@ 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 int The count value for `$a` minus the count value for `$b` (less than, equal to, or greater than zero). + * @return int Negative number if `$a->count` is less than `$b->count`, zero if they are equal, + * or greater than zero if `$a->count` is greater than `$b->count`. */ function _wp_object_count_sort_cb( $a, $b ) { return ( $a->count - $b->count ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 75c0fc0155..b7aa938dce 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-55221'; +$wp_version = '6.2-alpha-55222'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.