Make WordPress Core

Changeset 39984


Ignore:
Timestamp:
01/26/2017 02:15:04 PM (9 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.2 branch.

Location:
branches/4.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2

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

    r32011 r39984  
    751751                }
    752752
    753                 if ( ! $this->hierarchical_display && 'excerpt' == $mode && current_user_can( 'read_post', $post->ID ) )
    754                         the_excerpt();
     753                if ( ! $this->hierarchical_display && 'excerpt' == $mode && current_user_can( 'read_post', $post->ID ) ) {
     754                        echo esc_html( get_the_excerpt() );
     755                }
    755756
    756757                $actions = array();
Note: See TracChangeset for help on using the changeset viewer.