Changeset 56852 for branches/4.3/src/wp-admin/includes/dashboard.php
- Timestamp:
- 10/12/2023 02:28:05 PM (3 years ago)
- File:
-
- 1 edited
-
branches/4.3/src/wp-admin/includes/dashboard.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.3/src/wp-admin/includes/dashboard.php
r33357 r56852 822 822 823 823 echo '<div id="the-comment-list" data-wp-lists="list:comment">'; 824 foreach ( $comments as $comment ) 825 _wp_dashboard_recent_comments_row( $comment ); 824 foreach ( $comments as $comment ) { 825 $comment_post = get_post( $comment->comment_post_ID ); 826 if ( 827 current_user_can( 'edit_post', $comment->comment_post_ID ) || 828 ( 829 empty( $comment_post->post_password ) && 830 current_user_can( 'read_post', $comment->comment_post_ID ) 831 ) 832 ) { 833 _wp_dashboard_recent_comments_row( $comment ); 834 } 835 } 826 836 echo '</div>'; 827 837
Note: See TracChangeset
for help on using the changeset viewer.