WordPress.org

Make WordPress Core

Changeset 39989


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

Location:
branches/3.7
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/3.7

  • branches/3.7/src

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

    r27977 r39989  
    581581                }
    582582
    583                 if ( ! $this->hierarchical_display && 'excerpt' == $mode && current_user_can( 'read_post', $post->ID ) )
    584                         the_excerpt();
     583                if ( ! $this->hierarchical_display && 'excerpt' == $mode && current_user_can( 'read_post', $post->ID ) ) {
     584                        echo esc_html( get_the_excerpt() );
     585                }
    585586
    586587                $actions = array();
Note: See TracChangeset for help on using the changeset viewer.