Ticket #31351: post-thumbnail-comment-patch.diff
File post-thumbnail-comment-patch.diff, 1.5 KB (added by , 10 years ago) |
---|
-
post-thumbnail-template.php
39 39 * 40 40 * @since 2.9.0 41 41 * 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. 43 43 * @param string|array $attr Optional. Query string or array of attributes. 44 44 */ 45 45 function the_post_thumbnail( $size = 'post-thumbnail', $attr = '' ) { … … 79 79 * @since 2.9.0 80 80 * 81 81 * @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. 83 83 * @param string|array $attr Optional. Query string or array of attributes. 84 84 */ 85 85 function get_the_post_thumbnail( $post_id = null, $size = 'post-thumbnail', $attr = '' ) {