-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Abilities API: Implement server-side registry with REST API endpoints #9410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
42556b4
Abilities API: Implement server-side registry
gziolo c0efd2c
Sync latest changes from Abilities API repo
gziolo a0c1633
Bring the latest changes from Abilities API repo
gziolo 85f3a49
Bring another set of upstream changes planned for v0.2.0 release
gziolo dbaf583
Sync changes from Abilities API targeted for v0.2.0
gziolo a2b852f
Sync changes from the `v0.3.0` release
gziolo fb3ac2a
Update `@since` to the next WP version
gziolo 4ee5446
Apply suggestions from code review
gziolo f1c1dc8
Update src/wp-includes/abilities-api/class-wp-abilities-category-regi…
gziolo fd37d48
Update src/wp-includes/rest-api/endpoints/class-wp-rest-abilities-lis…
gziolo 38de7a7
Expand PHPDoc for array params
gziolo abc62fe
Address feedback from review regarding coding style
gziolo f5ad2b7
Fix PHPDoc for arrays
gziolo 988f5e5
Fix Method ReflectionProperty::setAccessible() is deprecated since 8.…
gziolo 61bf9fe
Prefix all filters with `wp_`
gziolo 8e75dcb
Remove PHPStan comments in PHPDoc
gziolo 4242735
Remove `instructions` annotation and change default for `destructive`…
gziolo bff3e7f
Add tests cases covering context and filtering by fields in REST API
gziolo 533eb68
Use consistently ability category/categories
gziolo 19f1a61
Introduce `wp_has_ability()` and `wp_has_ability_category()` public m…
gziolo de07c8c
Improve support for annotations, including DELETE handling in REST API
gziolo 1e54797
Fix bug in the permission check for ability in REST API run controller
gziolo 57d8eda
Improve handling for init hooks related to abilities and their catego…
gziolo 6cb5d7c
Apply suggestions from code review
gziolo 7f68dd9
Update src/wp-includes/abilities-api/class-wp-ability.php
gziolo b36ea85
Apply suggestions from code review
gziolo e124094
Rename REST routes and controllers
gziolo 1dec6a7
Enforce `init` hook before using ability related registries
gziolo 2dbde17
Increase testing code coverage for required `init` action check in ab…
gziolo bcc6ff9
Promote `validate_input` to public method and refactor usage
gziolo 88b4a6f
Fix test for expected routes in REST API schema
gziolo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix bug in the permission check for ability in REST API run controller
- Loading branch information
commit 1e54797715cc2ee7b7a2d1523f4db9e8e30b46bb
There are no files selected for viewing
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.