Changeset 56876 for branches/5.2/src/wp-admin/includes/dashboard.php
- Timestamp:
- 10/12/2023 03:04:07 PM (2 years ago)
- Location:
- branches/5.2
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-admin/includes/dashboard.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.2
- Property svn:mergeinfo changed
/trunk merged: 56833-56836,56838
- Property svn:mergeinfo changed
-
branches/5.2/src/wp-admin/includes/dashboard.php
r45510 r56876 946 946 echo '<ul id="the-comment-list" data-wp-lists="list:comment">'; 947 947 foreach ( $comments as $comment ) { 948 _wp_dashboard_recent_comments_row( $comment ); 948 $comment_post = get_post( $comment->comment_post_ID ); 949 if ( 950 current_user_can( 'edit_post', $comment->comment_post_ID ) || 951 ( 952 empty( $comment_post->post_password ) && 953 current_user_can( 'read_post', $comment->comment_post_ID ) 954 ) 955 ) { 956 _wp_dashboard_recent_comments_row( $comment ); 957 } 949 958 } 950 959 echo '</ul>';
Note: See TracChangeset
for help on using the changeset viewer.