Changeset 47985 for branches/5.4/src/wp-includes/comment-template.php
- Timestamp:
- 06/10/2020 07:21:12 PM (4 years ago)
- Location:
- branches/5.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.4
-
branches/5.4/src/wp-includes/comment-template.php
r47890 r47985 595 595 */ 596 596 function get_comment_excerpt( $comment_ID = 0 ) { 597 $comment = get_comment( $comment_ID ); 598 $comment_text = strip_tags( str_replace( array( "\n", "\r" ), ' ', $comment->comment_content ) ); 597 $comment = get_comment( $comment_ID ); 598 599 if ( ! post_password_required( $comment->comment_post_ID ) ) { 600 $comment_text = strip_tags( str_replace( array( "\n", "\r" ), ' ', $comment->comment_content ) ); 601 } else { 602 $comment_text = __( 'Password protected' ); 603 } 599 604 600 605 /* translators: Maximum number of words used in a comment excerpt. */
Note: See TracChangeset
for help on using the changeset viewer.