Changeset 56836 for trunk/src/wp-admin/includes/dashboard.php
- Timestamp:
- 10/12/2023 12:36:29 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/dashboard.php
r56697 r56836 1110 1110 echo '<ul id="the-comment-list" data-wp-lists="list:comment">'; 1111 1111 foreach ( $comments as $comment ) { 1112 _wp_dashboard_recent_comments_row( $comment ); 1112 $comment_post = get_post( $comment->comment_post_ID ); 1113 if ( 1114 current_user_can( 'edit_post', $comment->comment_post_ID ) || 1115 ( 1116 empty( $comment_post->post_password ) && 1117 current_user_can( 'read_post', $comment->comment_post_ID ) 1118 ) 1119 ) { 1120 _wp_dashboard_recent_comments_row( $comment ); 1121 } 1113 1122 } 1114 1123 echo '</ul>';
Note: See TracChangeset
for help on using the changeset viewer.