wp-api-plugins-themes-endpoints
wp-api-plugins-themes-endpoints copied to clipboard
#17-fix-permissions.
Fixes #17. Currently the permissions do not match what core uses to restric plugin access. This does not account for multisite, which will be added in a separate commit on a separate PR. Tests are updated to reflect unauthenticated and authenticated users without permissions.
I forgot our CI runs both multisite and single site tests in one go. The second commit adds in multisite permissions checks for plugins; matching WordPress core.
This is good to merge the failing tests are unrelated. This fix is in here #23.