Changeset 56843 for branches/6.3/src/wp-admin/includes/dashboard.php
- Timestamp:
- 10/12/2023 01:22:17 PM (2 years ago)
- Location:
- branches/6.3
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-admin/includes/dashboard.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.3
-
branches/6.3/src/wp-admin/includes/dashboard.php
r56294 r56843 1104 1104 echo '<ul id="the-comment-list" data-wp-lists="list:comment">'; 1105 1105 foreach ( $comments as $comment ) { 1106 _wp_dashboard_recent_comments_row( $comment ); 1106 $comment_post = get_post( $comment->comment_post_ID ); 1107 if ( 1108 current_user_can( 'edit_post', $comment->comment_post_ID ) || 1109 ( 1110 empty( $comment_post->post_password ) && 1111 current_user_can( 'read_post', $comment->comment_post_ID ) 1112 ) 1113 ) { 1114 _wp_dashboard_recent_comments_row( $comment ); 1115 } 1107 1116 } 1108 1117 echo '</ul>';
Note: See TracChangeset
for help on using the changeset viewer.