[buddypress-trac] [BuddyPress Trac] #8459: Audit user_can() and 'exist' cap usages, related to anonymous users
buddypress-trac
noreply at wordpress.org
Tue Apr 20 00:20:06 UTC 2021
#8459: Audit user_can() and 'exist' cap usages, related to anonymous users
-----------------------------+------------------------------
Reporter: johnjamesjacoby | Owner: (none)
Type: defect (bug) | Status: new
Priority: high | Milestone: Awaiting Review
Component: Core | Version:
Severity: normal | Resolution:
Keywords: needs-testing |
-----------------------------+------------------------------
Changes (by johnjamesjacoby):
* cc: peterwilsoncc (added)
Comment:
Here's the brief outline as I imagine it, that may or may not be 100%
accurate:
* Audit `user_can()` function calls
* Audit function calls that pass in a literal capability string as a
parameter, that use `exist`
* Ensure user/member component unit tests continue to pass as intended
against WordPress 5.8
* Ensure REST API tests continue to pass
* Ensure that code expecting `false` or a mock/empty `WP_User` object
continues to return the correct type of value
* Ensure hooks continue to pass in correctly typed variable values related
to roles/capabilities
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8459#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list