- Timestamp:
- 10/12/2023 03:02:41 PM (2 years ago)
- Location:
- branches/5.1
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-admin/includes/class-wp-comments-list-table.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.1
- Property svn:mergeinfo changed
/trunk merged: 56833-56836,56838
- Property svn:mergeinfo changed
-
branches/5.1/src/wp-admin/includes/class-wp-comments-list-table.php
r44631 r56873 555 555 $this->user_can = current_user_can( 'edit_comment', $comment->comment_ID ); 556 556 557 $edit_post_cap = $post ? 'edit_post' : 'edit_posts'; 558 if ( 559 current_user_can( $edit_post_cap, $comment->comment_post_ID ) || 560 ( 561 empty( $post->post_password ) && 562 current_user_can( 'read_post', $comment->comment_post_ID ) 563 ) 564 ) { 565 // The user has access to the post 566 } else { 567 return false; 568 } 569 557 570 echo "<tr id='comment-$comment->comment_ID' class='$the_comment_class'>"; 558 571 $this->single_row_columns( $comment );
Note: See TracChangeset
for help on using the changeset viewer.