From e481987c51ee2176ceea379e01959af2c33a98f4 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 26 Jan 2017 14:15:28 +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. Merges [39956] to the 4.4 branch. Built from https://develop.svn.wordpress.org/branches/4.4@39980 git-svn-id: http://core.svn.wordpress.org/branches/4.4@39917 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-posts-list-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php index d52ebc9832..c987e33393 100644 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ b/wp-admin/includes/class-wp-posts-list-table.php @@ -905,7 +905,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 );