WordPress.org

Make WordPress Core

Ticket #22885: 22885.2.diff

File 22885.2.diff, 746 bytes (added by georgestephanis, 5 years ago)

Adding in Array option for $size

  • wp-includes/post-thumbnail-template.php

     
    3939 *
    4040 * @since 2.9.0
    4141 *
    42  * @param int $size Optional. Image size. Defaults to 'post-thumbnail', which theme sets using set_post_thumbnail_size( $width, $height, $crop_flag );.
     42 * @param string|array $size Optional. Image size. Defaults to 'post-thumbnail', which theme sets using set_post_thumbnail_size( $width, $height, $crop_flag );.
    4343 * @param string|array $attr Optional. Query string or array of attributes.
    4444 */
    4545function the_post_thumbnail( $size = 'post-thumbnail', $attr = '' ) {