Make WordPress Core

Changeset 39985


Ignore:
Timestamp:
01/26/2017 02:16:57 PM (8 years ago)
Author:
johnbillion
Message:

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.1 branch.

Location:
branches/4.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1

  • branches/4.1/src/wp-admin/includes/class-wp-posts-list-table.php

    r30679 r39985  
    692692                }
    693693
    694                 if ( ! $this->hierarchical_display && 'excerpt' == $mode && current_user_can( 'read_post', $post->ID ) )
    695                         the_excerpt();
     694                if ( ! $this->hierarchical_display && 'excerpt' == $mode && current_user_can( 'read_post', $post->ID ) ) {
     695                        echo esc_html( get_the_excerpt() );
     696                }
    696697
    697698                $actions = array();
Note: See TracChangeset for help on using the changeset viewer.