Permalink
Browse files

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
  • Loading branch information...
1 parent d4311fb commit e0355131574bb86e9d0928de17af49fe2f905bf1 ryan committed Jun 10, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 wp-admin/includes/class-wp-posts-list-table.php
@@ -527,9 +527,8 @@ function single_row( $a_post, $level = 0 ) {
?>
<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();

0 comments on commit e035513

Please sign in to comment.