WordPress.org

Make WordPress Core

Changeset 32749


Ignore:
Timestamp:
06/13/2015 02:41:15 PM (7 years ago)
Author:
wonderboymusic
Message:

In WP_Posts_List_Table::column_title(), use is_post_type_hierarchical() instead of $this->hierarchical_display in the logic to determine whether the_excerpt() should be called.

Fixes #32187.

File:
1 edited

Legend:

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

    r32742 r32749  
    769769        }
    770770
    771         if ( ! $this->hierarchical_display && 'excerpt' == $mode && current_user_can( 'read_post', $post->ID ) ) {
     771        if ( ! is_post_type_hierarchical( $this->screen->post_type ) && 'excerpt' == $mode && current_user_can( 'read_post', $post->ID ) ) {
    772772            the_excerpt();
    773773        }
Note: See TracChangeset for help on using the changeset viewer.