[wp-trac] [WordPress Trac] #45197: Introduce `user_can_for_blog()`
WordPress Trac
noreply at wordpress.org
Fri Oct 26 11:05:51 UTC 2018
#45197: Introduce `user_can_for_blog()`
-----------------------------+------------------------------------------
Reporter: johnbillion | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Role/Capability | Version:
Severity: normal | Keywords: needs-patch needs-unit-tests
Focuses: multisite |
-----------------------------+------------------------------------------
The available user capability checking functions include:
* `current_user_can()`
* `user_can()`
* `current_user_can_for_blog()`
What's missing is `user_can_for_blog()` so that both a user ID and a site
ID can be passed in order to check a given user's capabilities on a given
site.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45197>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list