Make WordPress Core


Ignore:
Timestamp:
05/23/2020 03:22:53 PM (5 years ago)
Author:
ocean90
Message:

Role/Capability: Use meta caps edit_post, read_post, and delete_post directly.

Rather than consulting the post type object, let map_meta_cap() handle that for us.

Props peterwilsoncc, ocean90.
Fixes #50128.
See #23226.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api.php

    r47849 r47850  
    13241324    /**
    13251325     * @dataProvider rest_ensure_response_data_provider
    1326      * @group test1
    13271326     *
    13281327     * @param mixed $response      The response passed to rest_ensure_response().
Note: See TracChangeset for help on using the changeset viewer.