mirrored from git://develop.git.wordpress.org/
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REST API: Synchronize permission checks in `::get_items_permissions_c…
…heck()` methods for post types, post statuses, and users: * Only query post types with `'show_in_rest' => true` instead of looping over all post types and checking the `show_in_rest` property separately. * Return from the `foreach()` loop as soon as the permission check succeeded. Props pbiron, TimothyBlynJacobs, SergeyBiryukov. Fixes #49118. git-svn-id: https://develop.svn.wordpress.org/trunk@47034 602fd350-edb4-49c9-b593-d223f7449a82
- Loading branch information
1 parent
adb9483
commit c27ab74
Showing
3 changed files
with
16 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters