Make WordPress Core

Ticket #31351: post-thumbnail-comment-patch.diff

File post-thumbnail-comment-patch.diff, 1.5 KB (added by magicroundabout, 10 years ago)

Patch to update the comments

  • post-thumbnail-template.php

     
    3939 *
    4040 * @since 2.9.0
    4141 *
    42  * @param string|array $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 enables using add_theme_support('post-thumbnails') and sets using set_post_thumbnail_size( $width, $height, $crop_flag );. Note that this is different to 'thumbnail' which is a core image size that does not need enabling by the theme.
    4343 * @param string|array $attr Optional. Query string or array of attributes.
    4444 */
    4545function the_post_thumbnail( $size = 'post-thumbnail', $attr = '' ) {
     
    7979 * @since 2.9.0
    8080 *
    8181 * @param int $post_id Optional. Post ID.
    82  * @param string $size Optional. Image size. Defaults to 'post-thumbnail'.
     82 * @param string $size Optional. Image size. Defaults to 'post-thumbnail' which theme enables using add_theme_support('post-thumbnails') and sets using set_post_thumbnail_size( $width, $height, $crop_flag );. Note that this is different to 'thumbnail' which is a core image size that does not need enabling by the theme.
    8383 * @param string|array $attr Optional. Query string or array of attributes.
    8484 */
    8585function get_the_post_thumbnail( $post_id = null, $size = 'post-thumbnail', $attr = '' ) {