IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
393 | 393 | * |
394 | 394 | * @since 2.3.0 |
395 | 395 | * |
396 | | * @param int|WP_Post $id Optional. Post ID or post object. |
| 396 | * @param int|WP_Post|null $post Optional. Post ID or post object. |
397 | 397 | * @return bool |
398 | 398 | */ |
399 | | function has_excerpt( $id = 0 ) { |
400 | | $post = get_post( $id ); |
401 | | return ( !empty( $post->post_excerpt ) ); |
| 399 | function has_excerpt( $post = null ) { |
| 400 | return (bool) get_the_excerpt( $post ); |
402 | 401 | } |
403 | 402 | |
404 | 403 | /** |