WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/05/2019 09:21:46 PM (18 months ago)
Author:
johnbillion
Message:

Docs: Improve documentation of known return types, plus other docs fixes.

See #48303

File:
1 edited

Legend:

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

    r46644 r46660  
    11661166 * @param mixed $id_or_email The Gravatar to retrieve a URL for. Accepts a user_id, gravatar md5 hash,
    11671167 *                           user email, WP_User object, WP_Post object, or WP_Comment object.
    1168  * @return array Gravatar url for each size.
     1168 * @return array Avatar URLs keyed by size. Each value can be a URL string or boolean false.
    11691169 */
    11701170function rest_get_avatar_urls( $id_or_email ) {
     
    11841184 * @since 4.7.0
    11851185 *
    1186  * @return array List of pixel sizes for avatars. Default `[ 24, 48, 96 ]`.
     1186 * @return int[] List of pixel sizes for avatars. Default `[ 24, 48, 96 ]`.
    11871187 */
    11881188function rest_get_avatar_sizes() {
     
    11951195     * @since 4.4.0
    11961196     *
    1197      * @param array $sizes An array of int values that are the pixel sizes for avatars.
     1197     * @param int[] $sizes An array of int values that are the pixel sizes for avatars.
    11981198     *                     Default `[ 24, 48, 96 ]`.
    11991199     */
Note: See TracChangeset for help on using the changeset viewer.