Make WordPress Core


Ignore:
Timestamp:
10/12/2023 04:07:43 PM (15 months ago)
Author:
joemcgill
Message:

Grouped backports to the 6.2 branch.

  • REST API: Limit search_columns for users without list_users.
  • Comments: Prevent users who can not see a post from seeing comments on it.
  • Application Passwords: Prevent the use of some pseudo protocols in application passwords.
  • Restrict media shortcode ajax to certain type
  • REST API: Ensure no-cache headers are sent when methods are overriden.
  • Prevent unintended behavior when certain objects are unserialized.

Merges [56833], [56834], [56835], [56836], [56837], and [56838] to the 6.2 branch.
Props xknown, jorbin, Vortfu, joehoyle, timothyblynjacobs, peterwilsoncc, ehtis, tykoted, martinkrcho, paulkevan, dd32, antpb, rmccue.

Location:
branches/6.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.2

  • branches/6.2/src/wp-admin/includes/dashboard.php

    r55576 r56895  
    11021102        echo '<ul id="the-comment-list" data-wp-lists="list:comment">';
    11031103        foreach ( $comments as $comment ) {
    1104             _wp_dashboard_recent_comments_row( $comment );
     1104
     1105            $comment_post = get_post( $comment->comment_post_ID );
     1106            if (
     1107                current_user_can( 'edit_post', $comment->comment_post_ID ) ||
     1108                (
     1109                    empty( $comment_post->post_password ) &&
     1110                    current_user_can( 'read_post', $comment->comment_post_ID )
     1111                )
     1112            ) {
     1113                _wp_dashboard_recent_comments_row( $comment );
     1114            }
    11051115        }
    11061116        echo '</ul>';
Note: See TracChangeset for help on using the changeset viewer.