Make WordPress Core


Ignore:
Timestamp:
11/24/2020 09:25:46 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Upgrade more parameters in docblocks to used typed array notation.

See #51800, #41756

File:
1 edited

Legend:

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

    r49021 r49693  
    216216 *
    217217 * @param int|WP_Post  $post Optional. Post ID or WP_Post object.  Default is global `$post`.
    218  * @param string|array $size Optional. Registered image size to retrieve the source for or a flat
     218 * @param string|int[] $size Optional. Registered image size to retrieve the source for or a flat
    219219 *                           array of height and width dimensions. Default 'post-thumbnail'.
    220220 * @return string|false Post thumbnail URL or false if no URL is available.
     
    235235 * @since 4.4.0
    236236 *
    237  * @param string|array $size Optional. Image size to use. Accepts any valid image size,
     237 * @param string|int[] $size Optional. Image size to use. Accepts any valid image size,
    238238 *                           or an array of width and height values in pixels (in that order).
    239239 *                           Default 'post-thumbnail'.
Note: See TracChangeset for help on using the changeset viewer.