Changeset 36319
- Timestamp:
- 01/15/2016 02:47:00 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r36112 r36319 358 358 * 359 359 * @since 0.71 360 * 361 * @param mixed $deprecated Not used. 362 * @return string 363 */ 364 function get_the_excerpt( $deprecated = '' ) { 365 if ( !empty( $deprecated ) ) 360 * @since 4.5.0 Introduced the `$post` parameter. 361 * 362 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post. 363 * @return string Post excerpt. 364 */ 365 function get_the_excerpt( $post = null ) { 366 if ( is_bool( $post ) ) { 366 367 _deprecated_argument( __FUNCTION__, '2.3' ); 367 368 $post = get_post(); 368 } 369 370 $post = get_post( $post ); 369 371 if ( empty( $post ) ) { 370 372 return '';
Note: See TracChangeset
for help on using the changeset viewer.