Make WordPress Core


Ignore:
Timestamp:
01/26/2017 02:21:27 PM (7 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 3.8 branch.

Location:
branches/3.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.8

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

    r27976 r39988  
    588588                }
    589589
    590                 if ( ! $this->hierarchical_display && 'excerpt' == $mode && current_user_can( 'read_post', $post->ID ) )
    591                         the_excerpt();
     590                if ( ! $this->hierarchical_display && 'excerpt' == $mode && current_user_can( 'read_post', $post->ID ) ) {
     591                        echo esc_html( get_the_excerpt() );
     592                }
    592593
    593594                $actions = array();
Note: See TracChangeset for help on using the changeset viewer.