Ticket #44859: 44859.diff
| File 44859.diff, 752 bytes (added by , 8 years ago) |
|---|
-
wp-includes/post-thumbnail-template.php
23 23 * @return bool Whether the post has an image attached. 24 24 */ 25 25 function has_post_thumbnail( $post = null ) { 26 return (bool) get_post_thumbnail_id( $post ); 26 /** 27 * Filters the response for whether a post has an image attached. 28 * 29 * @since 5.0.0 30 * 31 * @param bool $has_thumbnail True if post has an image attached, otherwise false. 32 * @param int $post_id The post ID. 33 */ 34 return (bool) apply_filters( 'has_post_thumbnail', get_post_thumbnail_id( $post ), $post ); 27 35 } 28 36 29 37 /**