Changeset 49021 for trunk/src/wp-includes/post-thumbnail-template.php
- Timestamp:
- 09/20/2020 04:21:42 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-thumbnail-template.php
r49016 r49021 75 75 * @see get_the_post_thumbnail() 76 76 * 77 * @param string|array $size Optional. Image size to use. Accepts any valid image size, or 78 * an array of width and height values in pixels (in that order). 79 * Default 'post-thumbnail'. 77 * @param string|int[] $size Optional. Image size. Accepts any registered image size name, or an array of 78 * width and height values in pixels (in that order). Default 'post-thumbnail'. 80 79 * @param string|array $attr Optional. Query string or array of attributes. Default empty. 81 80 */ … … 132 131 * 133 132 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`. 134 * @param string|array $size Optional. Image size to use. Accepts any valid image size, or 135 * an array of width and height values in pixels (in that order). 136 * Default 'post-thumbnail'. 133 * @param string|int[] $size Optional. Image size. Accepts any registered image size name, or an array of 134 * width and height values in pixels (in that order). Default 'post-thumbnail'. 137 135 * @param string|array $attr Optional. Query string or array of attributes. Default empty. 138 136 * @return string The post thumbnail image tag. … … 153 151 * @since 4.9.0 Added the `$post_id` parameter. 154 152 * 155 * @param string| array $size The post thumbnail size. Image size or array of width and height156 * values (in that order). Default 'post-thumbnail'.153 * @param string|int[] $size Requested image size. Can be any registered image size name, or 154 * an array of width and height values in pixels (in that order). 157 155 * @param int $post_id The post ID. 158 156 */ … … 170 168 * @param int $post_id The post ID. 171 169 * @param int $post_thumbnail_id The post thumbnail ID. 172 * @param string| array $size The post thumbnail size. Image size or array of width173 * an d height values (in that order). Default 'post-thumbnail'.170 * @param string|int[] $size Requested image size. Can be any registered image size name, or 171 * an array of width and height values in pixels (in that order). 174 172 */ 175 173 do_action( 'begin_fetch_post_thumbnail_html', $post->ID, $post_thumbnail_id, $size ); … … 188 186 * @param int $post_id The post ID. 189 187 * @param int $post_thumbnail_id The post thumbnail ID. 190 * @param string| array $size The post thumbnail size. Image size or array of width191 * an d height values (in that order). Default 'post-thumbnail'.188 * @param string|int[] $size Requested image size. Can be any registered image size name, or 189 * an array of width and height values in pixels (in that order). 192 190 */ 193 191 do_action( 'end_fetch_post_thumbnail_html', $post->ID, $post_thumbnail_id, $size ); … … 205 203 * @param int $post_id The post ID. 206 204 * @param int $post_thumbnail_id The post thumbnail ID. 207 * @param string| array $size The post thumbnail size. Image size or array of width and height208 * values (in that order). Default 'post-thumbnail'.205 * @param string|int[] $size Requested image size. Can be any registered image size name, or 206 * an array of width and height values in pixels (in that order). 209 207 * @param string $attr Query string of attributes. 210 208 */
Note: See TracChangeset
for help on using the changeset viewer.