Index: wp-includes/post-template.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- wp-includes/post-template.php	(revision 3b3ded01a0d13116c8a35094c37e420642545143)
+++ wp-includes/post-template.php	(revision )
@@ -393,12 +393,11 @@
  *
  * @since 2.3.0
  *
- * @param int|WP_Post $id Optional. Post ID or post object.
+ * @param int|WP_Post|null $post Optional. Post ID or post object.
  * @return bool
  */
-function has_excerpt( $id = 0 ) {
-	$post = get_post( $id );
-	return ( !empty( $post->post_excerpt ) );
+function has_excerpt( $post = null ) {
+	return (bool) get_the_excerpt( $post );
 }
 
 /**
