API function/method: Get all WPSEO related capabilities#9365
Merged
Dieterrr merged 5 commits intoYoast:trunkfrom Sep 6, 2018
Merged
API function/method: Get all WPSEO related capabilities#9365Dieterrr merged 5 commits intoYoast:trunkfrom
Dieterrr merged 5 commits intoYoast:trunkfrom
Conversation
No need for assertions. The function shouldn't trigger any errors.
Contributor
Author
|
For reference: @moorscode mentioned https://github.com/Yoast/wordpress-seo/blob/trunk/wp-seo-main.php#L170-L174 as a difference in code order. This function shouldn't call |
18 tasks
Contributor
Author
|
Note: Since 7.3 is out the version tag for this function should be updated before merging. |
JoryHogeveen
added a commit
to JoryHogeveen/view-admin-as
that referenced
this pull request
May 2, 2018
Contributor
|
CR 👍 Of course, the |
updated @SInCE to 8.3 of wpseo_get_capabilities()
Contributor
|
Acceptance done 👍 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR can be summarized in the following changelog entry:
Props to: JoryHogeveen
Relevant technical choices:
Used the capability manager class instance.
Test instructions
This PR can be tested by following these steps:
Call the function. It should return the following:
Array ( [0] => wpseo_bulk_edit [1] => wpseo_edit_advanced_metadata [2] => wpseo_manage_options )Quality assurance
Fixes #9300