Make WordPress Core


Ignore:
Timestamp:
12/29/2021 05:26:26 PM (3 years ago)
Author:
johnbillion
Message:

Docs: Miscellaneous inline documentation improvements.

See #53399

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-list-util.php

    r52066 r52422  
    1010 * List utility.
    1111 *
    12  * Utility class to handle operations on an array of objects.
     12 * Utility class to handle operations on an array of objects or arrays.
    1313 *
    1414 * @since 4.7.0
     
    141141
    142142    /**
    143      * Plucks a certain field out of each object in the list.
     143     * Plucks a certain field out of each element in the input array.
    144144     *
    145145     * This has the same functionality and prototype of
     
    148148     * @since 4.7.0
    149149     *
    150      * @param int|string $field     Field from the object to place instead of the entire object
    151      * @param int|string $index_key Optional. Field from the object to use as keys for the new array.
     150     * @param int|string $field     Field to fetch from the object or array.
     151     * @param int|string $index_key Optional. Field from the element to use as keys for the new array.
    152152     *                              Default null.
    153153     * @return array Array of found values. If `$index_key` is set, an array of found values with keys
     
    202202
    203203    /**
    204      * Sorts the list, based on one or more orderby arguments.
     204     * Sorts the input array based on one or more orderby arguments.
    205205     *
    206206     * @since 4.7.0
     
    240240
    241241    /**
    242      * Callback to sort the list by specific fields.
     242     * Callback to sort an array by specific fields.
    243243     *
    244244     * @since 4.7.0
Note: See TracChangeset for help on using the changeset viewer.