PluginProbe
Gutenberg / 24.1.0
Gutenberg v24.1.0
24.1.0 24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 All 404 releases
← All changes | build/scripts/block-library/latest-comments.php +4 -1 23.7.0 → 24.1.0 View file →
@@ -119,9 +119,12 @@
119 119 );
120 120 }
121 121 $list_items_markup .= '</footer>';
122 122 if ( 'full' === $display_content ) {
123 - $list_items_markup .= '<div class="wp-block-latest-comments__comment-excerpt">' . wpautop( get_comment_text( $comment ) ) . '</div>';
123 + $comment_text = post_password_required( $comment->comment_post_ID )
124 + ? __( 'Password protected' )
125 + : get_comment_text( $comment );
126 + $list_items_markup .= '<div class="wp-block-latest-comments__comment-excerpt">' . wpautop( $comment_text ) . '</div>';
124 127 } elseif ( 'excerpt' === $display_content ) {
125 128 $list_items_markup .= '<div class="wp-block-latest-comments__comment-excerpt">' . wpautop( get_comment_excerpt( $comment ) ) . '</div>';
126 129 }
127 130 $list_items_markup .= '</article></li>';