Changeset 56873 for branches/5.1/src/wp-admin/includes/dashboard.php
- 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/dashboard.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/dashboard.php
r44815 r56873 948 948 echo '<ul id="the-comment-list" data-wp-lists="list:comment">'; 949 949 foreach ( $comments as $comment ) { 950 _wp_dashboard_recent_comments_row( $comment ); 950 $comment_post = get_post( $comment->comment_post_ID ); 951 if ( 952 current_user_can( 'edit_post', $comment->comment_post_ID ) || 953 ( 954 empty( $comment_post->post_password ) && 955 current_user_can( 'read_post', $comment->comment_post_ID ) 956 ) 957 ) { 958 _wp_dashboard_recent_comments_row( $comment ); 959 } 951 960 } 952 961 echo '</ul>';
Note: See TracChangeset
for help on using the changeset viewer.