Changeset 52027 for trunk/src/wp-includes/post-thumbnail-template.php
- Timestamp:
- 11/07/2021 07:27:45 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-thumbnail-template.php
r50236 r52027 228 228 } 229 229 230 return wp_get_attachment_image_url( $post_thumbnail_id, $size ); 230 $thumbnail_url = wp_get_attachment_image_url( $post_thumbnail_id, $size ); 231 232 /** 233 * Filters the post thumbnail URL. 234 * 235 * @since 5.9.0 236 * 237 * @param string|false $thumbnail_url Post thumbnail URL or false if the post does not exist. 238 * @param int|WP_Post|null $post Post ID or WP_Post object. Default is global `$post`. 239 * @param string|int[] $size Registered image size to retrieve the source for or a flat array 240 * of height and width dimensions. Default 'post-thumbnail'. 241 */ 242 return apply_filters( 'post_thumbnail_url', $thumbnail_url, $post, $size ); 231 243 } 232 244
Note: See TracChangeset
for help on using the changeset viewer.