-
Notifications
You must be signed in to change notification settings - Fork 909
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
API function/method: Get all WPSEO related capabilities #9365
Conversation
No need for assertions. The function shouldn't trigger any errors.
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 |
Note: Since 7.3 is out the version tag for this function should be updated before merging. |
CR 👍 Of course, the |
updated @SInCE to 8.3 of wpseo_get_capabilities()
Acceptance done 👍 |
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