Make WordPress Core


Ignore:
Timestamp:
11/17/2022 06:13:47 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Docs: Update various DocBlocks and inline comments per the documentation standards.

Includes minor formatting edits for consistency.

Follow-up to [53/tests], [12179], [12946], [35288], [37884], [38810], [38928], [46596], [48131], [52955], [53548], [53813], [53873], [54118], [54316], [54420], [54421], [54803].

See #56792.

File:
1 edited

Legend:

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

    r54797 r54855  
    935935     *
    936936     * @param string[] $post_links An array of enclosure links.
    937      * @param int      $post_ID    Post ID.
     937     * @param int      $post_id    Post ID.
    938938     */
    939939    $post_links = apply_filters( 'enclosure_links', $post_links, $post->ID );
     
    33313331     *
    33323332     * @param string[] $wp_get_mime_types Mime types keyed by the file extension regex
    3333      *                                 corresponding to those types.
     3333     *                                    corresponding to those types.
    33343334     */
    33353335    return apply_filters(
     
    52015201 * @param array        $list          An array of objects or arrays to sort.
    52025202 * @param string|array $orderby       Optional. Either the field name to order by or an array
    5203  *                                    of multiple orderby fields as $orderby => $order.
    5204  * @param string       $order         Optional. Either 'ASC' or 'DESC'. Only used if $orderby
    5205  *                                    is a string.
     5203 *                                    of multiple orderby fields as `$orderby => $order`.
     5204 *                                    Default empty array.
     5205 * @param string       $order         Optional. Either 'ASC' or 'DESC'. Only used if `$orderby`
     5206 *                                    is a string. Default 'ASC'.
    52065207 * @param bool         $preserve_keys Optional. Whether to preserve keys. Default false.
    52075208 * @return array The sorted array.
Note: See TracChangeset for help on using the changeset viewer.