Make WordPress Core


Ignore:
Timestamp:
09/20/2020 04:21:42 PM (6 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-admin/includes/post.php

    r48782 r49021  
    15371537                 * Note: When a theme adds 'post-thumbnail' support, a special 'post-thumbnail'
    15381538                 * image size is registered, which differs from the 'thumbnail' image size
    1539                  * managed via the Settings > Media screen. See the `$size` parameter description
    1540                  * for more information on default values.
     1539                 * managed via the Settings > Media screen.
    15411540                 *
    15421541                 * @since 4.4.0
    15431542                 *
    1544                  * @param string|array $size         Post thumbnail image size to display in the meta box. Accepts any valid
    1545                  *                                   image size, or an array of width and height values in pixels (in that order).
    1546                  *                                   If the 'post-thumbnail' size is set, default is 'post-thumbnail'. Otherwise,
    1547                  *                                   default is an array with 266 as both the height and width values.
     1543                 * @param string|int[] $size         Requested image size. Can be any registered image size name, or
     1544                 *                                   an array of width and height values in pixels (in that order).
    15481545                 * @param int          $thumbnail_id Post thumbnail attachment ID.
    15491546                 * @param WP_Post      $post         The post object associated with the thumbnail.
Note: See TracChangeset for help on using the changeset viewer.