In excerpt view, show the excerpt only if the user can read_post.

git-svn-id: http://core.svn.wordpress.org/trunk@21047 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2012-06-10 16:22:55 +00:00
parent d4311fb73e
commit e035513157

View File

@ -527,9 +527,8 @@ class WP_Posts_List_Table extends WP_List_Table {
?>
<td <?php echo $attributes ?>><strong><?php if ( $can_edit_post && $post->post_status != 'trash' ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $title ) ); ?>"><?php echo $title ?></a><?php } else { echo $title; }; _post_states( $post ); ?></strong>
<?php
if ( 'excerpt' == $mode ) {
if ( 'excerpt' == $mode && current_user_can( 'read_post', $post->ID ) )
the_excerpt();
}
}
$actions = array();