X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/wordpress.git/blobdiff_plain/38ca813a0e312e2768e5b9519f0415cd0aa84781..5aa86a9053fb0fa15846bb60aac2fb8fdfff524a:/wp-includes/post-thumbnail-template.php diff --git a/wp-includes/post-thumbnail-template.php b/wp-includes/post-thumbnail-template.php index 38ae9039..65a51726 100644 --- a/wp-includes/post-thumbnail-template.php +++ b/wp-includes/post-thumbnail-template.php @@ -18,7 +18,6 @@ * @return bool Whether post has an image attached. */ function has_post_thumbnail( $post_id = null ) { - $post_id = ( null === $post_id ) ? get_the_ID() : $post_id; return (bool) get_post_thumbnail_id( $post_id ); } @@ -50,7 +49,7 @@ function the_post_thumbnail( $size = 'post-thumbnail', $attr = '' ) { /** * Update cache for thumbnails in the current loop * - * @sicne 3.2 + * @since 3.2 */ function update_post_thumbnail_cache() { global $wp_query;