Make WordPress Core


Ignore:
Timestamp:
12/18/2015 11:37:58 PM (9 years ago)
Author:
DrewAPicture
Message:

Docs: Add missing parameter and return descriptions to the DocBlocks for _wp_object_name_sort_cb() and _wp_object_count_sort_cb(), both uasort() callbacks.

See #32246.

File:
1 edited

Legend:

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

    r36005 r36013  
    948948
    949949/**
    950  * Callback for comparing objects based on name
     950 * Serves as a callback for comparing objects based on name.
     951 *
     952 * Used with `uasort()`.
    951953 *
    952954 * @since 3.1.0
    953955 * @access private
    954  * @return int
     956 *
     957 * @param object $a The first object to compare.
     958 * @param object $b The second object to compare.
     959 * @return int Negative number if `$a->name` is less than `$b->name`, zero if they are equal,
     960 *             or greater than zero if `$a->name` is greater than `$b->name`.
    955961 */
    956962function _wp_object_name_sort_cb( $a, $b ) {
     
    959965
    960966/**
    961  * Callback for comparing objects based on count
     967 * Serves as a callback for comparing objects based on count.
     968 *
     969 * Used with `uasort()`.
    962970 *
    963971 * @since 3.1.0
    964972 * @access private
    965  * @return bool
     973 *
     974 * @param object $a The first object to compare.
     975 * @param object $b The second object to compare.
     976 * @return bool Whether the count value for `$a` is greater than the count value for `$b`.
    966977 */
    967978function _wp_object_count_sort_cb( $a, $b ) {
Note: See TracChangeset for help on using the changeset viewer.