In excerpt view, show the excerpt only if the user can read_post.
git-svn-id: https://develop.svn.wordpress.org/trunk@21047 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e61ac6e607
commit
42b507572c
@ -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 “%s”' ), $title ) ); ?>"><?php echo $title ?></a><?php } else { echo $title; }; _post_states( $post ); ?></strong>
|
<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 “%s”' ), $title ) ); ?>"><?php echo $title ?></a><?php } else { echo $title; }; _post_states( $post ); ?></strong>
|
||||||
<?php
|
<?php
|
||||||
if ( 'excerpt' == $mode ) {
|
if ( 'excerpt' == $mode && current_user_can( 'read_post', $post->ID ) )
|
||||||
the_excerpt();
|
the_excerpt();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$actions = array();
|
$actions = array();
|
||||||
|
Loading…
Reference in New Issue
Block a user