Make WordPress Core

Changeset 55222


Ignore:
Timestamp:
02/04/2023 03:16:13 PM (15 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/category-template.php

    r55214 r55222  
    10851085 * @param object $a The first object to compare.
    10861086 * @param object $b The second object to compare.
    1087  * @return int The count value for `$a` minus the count value for `$b` (less than, equal to, or greater than zero).
     1087 * @return int Negative number if `$a->count` is less than `$b->count`, zero if they are equal,
     1088 *             or greater than zero if `$a->count` is greater than `$b->count`.
    10881089 */
    10891090function _wp_object_count_sort_cb( $a, $b ) {
Note: See TracChangeset for help on using the changeset viewer.