Make WordPress Core

Changes between Initial Version and Version 3 of Ticket #49118


Ignore:
Timestamp:
01/02/2020 07:10:38 PM (6 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #49118

    • Property Keywords has-patch commit added
    • Property Version changed from to 4.9.6
    • Property Milestone changed from Awaiting Review to 5.4
  • Ticket #49118 – Description

    initial v3  
    11Related: #42202
    22
    3 Changeset [https://core.trac.wordpress.org/changeset/43137 43137] added a `who=authors` parameter to the `list users` endpoint.
     3Changeset [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`.