WordPress 4.1.2
[autoinstalls/wordpress.git] / wp-admin / includes / class-wp-comments-list-table.php
index 3814f98bcfbcbba77df4e42764432555f896bea8..35a193f1ce8cb4253863823cf5492b4aab22cd41 100644 (file)
@@ -554,9 +554,9 @@ class WP_Comments_List_Table extends WP_List_Table {
 
                if ( current_user_can( 'edit_post', $post->ID ) ) {
                        $post_link = "<a href='" . get_edit_post_link( $post->ID ) . "'>";
-                       $post_link .= get_the_title( $post->ID ) . '</a>';
+                       $post_link .= esc_html( get_the_title( $post->ID ) ) . '</a>';
                } else {
-                       $post_link = get_the_title( $post->ID );
+                       $post_link = esc_html( get_the_title( $post->ID ) );
                }
 
                echo '<div class="response-links"><span class="post-com-count-wrapper">';