Changeset 40042
- Timestamp:
- 02/05/2017 02:34:16 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r40027 r40042 399 399 400 400 /** 401 * Whether post hasexcerpt.401 * Whether the post has a custom excerpt. 402 402 * 403 403 * @since 2.3.0 404 404 * 405 * @param int|WP_Post $ id Optional. Post ID or post object.406 * @return bool 407 */ 408 function has_excerpt( $ id= 0 ) {409 $post = get_post( $ id);405 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post. 406 * @return bool True if the post has a custom excerpt, false otherwise. 407 */ 408 function has_excerpt( $post = 0 ) { 409 $post = get_post( $post ); 410 410 return ( !empty( $post->post_excerpt ) ); 411 411 }
Note: See TracChangeset
for help on using the changeset viewer.