mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@47850 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1323,7 +1323,6 @@ class Tests_REST_API extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @dataProvider rest_ensure_response_data_provider
|
||||
* @group test1
|
||||
*
|
||||
* @param mixed $response The response passed to rest_ensure_response().
|
||||
* @param mixed $expected_data The expected data a response should include.
|
||||
|
||||
Reference in New Issue
Block a user