From a96089e8e6ea09069869f45aa0d3e43c3e6427ce Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 26 Jan 2017 13:40:17 +0000 Subject: [PATCH] Posts, Post Types: When using Excerpt mode on the Posts list table, ensure the excerpt output matches what was manually entered into the Excerpt field. git-svn-id: https://develop.svn.wordpress.org/trunk@39956 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-posts-list-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 a0e4bfc8df..668c3d20a4 100644 --- a/src/wp-admin/includes/class-wp-posts-list-table.php +++ b/src/wp-admin/includes/class-wp-posts-list-table.php @@ -956,7 +956,7 @@ class WP_Posts_List_Table extends WP_List_Table { echo "\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 );