Changeset 47959 for branches/5.3/src/wp-includes/comment-template.php
- Timestamp:
- 06/10/2020 05:58:07 PM (6 years ago)
- Location:
- branches/5.3
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/comment-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.3
- Property svn:mergeinfo changed
/trunk merged: 47947-47951
- Property svn:mergeinfo changed
-
branches/5.3/src/wp-includes/comment-template.php
r47916 r47959 594 594 */ 595 595 function get_comment_excerpt( $comment_ID = 0 ) { 596 $comment = get_comment( $comment_ID ); 597 $comment_text = strip_tags( str_replace( array( "\n", "\r" ), ' ', $comment->comment_content ) ); 596 $comment = get_comment( $comment_ID ); 597 598 if ( ! post_password_required( $comment->comment_post_ID ) ) { 599 $comment_text = strip_tags( str_replace( array( "\n", "\r" ), ' ', $comment->comment_content ) ); 600 } else { 601 $comment_text = __( 'Password protected' ); 602 } 598 603 599 604 /* translators: Maximum number of words used in a comment excerpt. */
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)