Skip to content

Commit 4482f92

Browse files
committed
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.
Built from https://develop.svn.wordpress.org/trunk@39956 git-svn-id: http://core.svn.wordpress.org/trunk@39893 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent e357195 commit 4482f92

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: wp-admin/includes/class-wp-posts-list-table.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ public function column_title( $post ) {
956956
echo "</strong>\n";
957957

958958
if ( ! is_post_type_hierarchical( $this->screen->post_type ) && 'excerpt' === $mode && current_user_can( 'read_post', $post->ID ) ) {
959-
the_excerpt();
959+
echo esc_html( get_the_excerpt() );
960960
}
961961

962962
get_inline_data( $post );

Diff for: wp-includes/version.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* @global string $wp_version
66
*/
7-
$wp_version = '4.8-alpha-39954';
7+
$wp_version = '4.8-alpha-39956';
88

99
/**
1010
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)