Changeset 56878 for branches/5.4/src/wp-admin/includes/dashboard.php
- Timestamp:
- 10/12/2023 03:06:49 PM (15 months ago)
- Location:
- branches/5.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.4
- Property svn:mergeinfo changed
/trunk merged: 56833-56836,56838
- Property svn:mergeinfo changed
-
branches/5.4/src/wp-admin/includes/dashboard.php
r47415 r56878 1035 1035 echo '<ul id="the-comment-list" data-wp-lists="list:comment">'; 1036 1036 foreach ( $comments as $comment ) { 1037 _wp_dashboard_recent_comments_row( $comment ); 1037 $comment_post = get_post( $comment->comment_post_ID ); 1038 if ( 1039 current_user_can( 'edit_post', $comment->comment_post_ID ) || 1040 ( 1041 empty( $comment_post->post_password ) && 1042 current_user_can( 'read_post', $comment->comment_post_ID ) 1043 ) 1044 ) { 1045 _wp_dashboard_recent_comments_row( $comment ); 1046 } 1038 1047 } 1039 1048 echo '</ul>';
Note: See TracChangeset
for help on using the changeset viewer.