Ticket #21041: post-template.diff
| File post-template.diff, 667 bytes (added by , 14 years ago) |
|---|
-
wp-includes/post-template.php
260 260 _deprecated_argument( __FUNCTION__, '2.3' ); 261 261 262 262 global $post; 263 $output = $post->post_excerpt;264 263 if ( post_password_required($post) ) { 265 $output = __('There is no excerpt because this is a protected post.'); 266 return $output; 264 return __( 'There is no excerpt because this is a protected post.' ); 267 265 } 268 266 269 return apply_filters( 'get_the_excerpt', $output);267 return apply_filters( 'get_the_excerpt', $post->post_excerpt ); 270 268 } 271 269 272 270 /**