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. git-svn-id: https://develop.svn.wordpress.org/trunk@32749 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1e9781a945
commit
9629b5413d
@ -768,7 +768,7 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
echo '<div class="locked-info"><span class="locked-avatar">' . $locked_avatar . '</span> <span class="locked-text">' . $locked_text . "</span></div>\n";
|
||||
}
|
||||
|
||||
if ( ! $this->hierarchical_display && 'excerpt' == $mode && current_user_can( 'read_post', $post->ID ) ) {
|
||||
if ( ! is_post_type_hierarchical( $this->screen->post_type ) && 'excerpt' == $mode && current_user_can( 'read_post', $post->ID ) ) {
|
||||
the_excerpt();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user