Make WordPress Core

Changeset 39986


Ignore:
Timestamp:
01/26/2017 02:18:23 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.0 branch.

Location:
branches/4.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.0

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

    r29707 r39986  
    653653                }
    654654
    655                 if ( ! $this->hierarchical_display && 'excerpt' == $mode && current_user_can( 'read_post', $post->ID ) )
    656                         the_excerpt();
     655                if ( ! $this->hierarchical_display && 'excerpt' == $mode && current_user_can( 'read_post', $post->ID ) ) {
     656                        echo esc_html( get_the_excerpt() );
     657                }
    657658
    658659                $actions = array();
Note: See TracChangeset for help on using the changeset viewer.