Make WordPress Core

Changeset 39956


Ignore:
Timestamp:
01/26/2017 01:40:17 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r39917 r39956  
    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
Note: See TracChangeset for help on using the changeset viewer.