WordPress 4.7.2
[autoinstalls/wordpress.git] / wp-admin / includes / class-wp-posts-list-table.php
index ae0f2441fe277615dd985e590762b71ceb8f9ae2..4e1ba34f173ddd3228e3a1fd353bd801cf2874c4 100644 (file)
@@ -955,7 +955,7 @@ class WP_Posts_List_Table extends WP_List_Table {
                echo "</strong>\n";
 
                if ( ! is_post_type_hierarchical( $this->screen->post_type ) && 'excerpt' === $mode && current_user_can( 'read_post', $post->ID ) ) {
-                       the_excerpt();
+                       echo esc_html( get_the_excerpt() );
                }
 
                get_inline_data( $post );