Make WordPress Core


Ignore:
Timestamp:
09/20/2020 04:21:42 PM (4 years ago)
Author:
johnbillion
Message:

Media: Standardise the description for image size parameters.

This brings continuity to all the image related functions and filters which accept or pass a size parameter.

Props dilipbheda, johnbillion

Fixes #47364

File:
1 edited

Legend:

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

    r49020 r49021  
    15971597 *
    15981598 * @param int|WP_Post  $id        Optional. Post ID or post object.
    1599  * @param string|array $size      Optional. Image size. Accepts any valid image size, or an array
    1600  *                                of width and height values in pixels (in that order).
    1601  *                                Default 'thumbnail'.
     1599 * @param string|int[] $size      Optional. Image size. Accepts any registered image size name, or an array
     1600 *                                of width and height values in pixels (in that order). Default 'thumbnail'.
    16021601 * @param bool         $permalink Optional. Whether to add permalink to image. Default false.
    16031602 * @param bool         $icon      Optional. Whether the attachment is an icon. Default false.
     
    16431642     * @param string       $link_html The page link HTML output.
    16441643     * @param int          $id        Post ID.
    1645      * @param string|array $size      Size of the image. Image size or array of width and height values (in that order).
    1646      *                                Default 'thumbnail'.
     1644     * @param string|int[] $size      Requested image size. Can be any registered image size name, or
     1645     *                                an array of width and height values in pixels (in that order).
    16471646     * @param bool         $permalink Whether to add permalink to image. Default false.
    16481647     * @param bool         $icon      Whether to include an icon.
Note: See TracChangeset for help on using the changeset viewer.