WordPress.org

Make WordPress Core

Changeset 35074


Ignore:
Timestamp:
10/12/2015 04:55:08 PM (4 years ago)
Author:
DrewAPicture
Message:

Docs: The $size parameters in the begin_fetch_post_thumbnail_html and end_fetch_post_thumbnail_html hooks can also accept an array (already supported).

See #34257. See #32246. See [35070] and [35071].

File:
1 edited

Legend:

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

    r35073 r35074  
    138138         * @since 2.9.0
    139139         *
    140          * @param int    $post_id           The post ID.
    141          * @param string $post_thumbnail_id The post thumbnail ID.
    142          * @param string $size              The post thumbnail size. Image size or array of width
    143          *                                  and height values (in that order). Default 'post-thumbnail'.
     140         * @param int          $post_id           The post ID.
     141         * @param string       $post_thumbnail_id The post thumbnail ID.
     142         * @param string|array $size              The post thumbnail size. Image size or array of width
     143         *                                        and height values (in that order). Default 'post-thumbnail'.
    144144         */
    145145        do_action( 'begin_fetch_post_thumbnail_html', $post->ID, $post_thumbnail_id, $size );
     
    153153         * @since 2.9.0
    154154         *
    155          * @param int    $post_id           The post ID.
    156          * @param string $post_thumbnail_id The post thumbnail ID.
    157          * @param string $size              The post thumbnail size. Image size or array of width
    158          *                                  and height values (in that order). Default 'post-thumbnail'.
     155         * @param int          $post_id           The post ID.
     156         * @param string       $post_thumbnail_id The post thumbnail ID.
     157         * @param string|array $size              The post thumbnail size. Image size or array of width
     158         *                                        and height values (in that order). Default 'post-thumbnail'.
    159159         */
    160160        do_action( 'end_fetch_post_thumbnail_html', $post->ID, $post_thumbnail_id, $size );
Note: See TracChangeset for help on using the changeset viewer.