Make WordPress Core

Changes between Version 3 and Version 5 of Ticket #49118


Ignore:
Timestamp:
01/02/2020 09:22:56 PM (6 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #49118

    • Property Status changed from new to reviewing
    • Property Owner set to SergeyBiryukov
  • Ticket #49118 – Description

    v3 v5  
    11Related: #42202
    22
    3 Changeset [43137] added a `who=authors` parameter to the `list users` endpoint.
     3Changeset [43001]/[43137] added a `who=authors` parameter to the `list users` endpoint.
    44
    55When that parameter is present, `WP_REST_Users_Controller::get_items_permissions_check()` checks that the current user has the capability to `edit_posts` for at least 1 post type that has `show_in_rest = true` and supports author.  That check loops through **all** post types with `show_in_rest = true`.