diff --git a/src/wp-admin/includes/class-wp-posts-list-table.php b/src/wp-admin/includes/class-wp-posts-list-table.php index 04639347d2..6430544c7f 100644 --- a/src/wp-admin/includes/class-wp-posts-list-table.php +++ b/src/wp-admin/includes/class-wp-posts-list-table.php @@ -790,7 +790,7 @@ class WP_Posts_List_Table extends WP_List_Table { } 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 );