[wp-trac] [WordPress Trac] #45197: Introduce `user_can_for_blog()`
WordPress Trac
noreply at wordpress.org
Mon Sep 30 12:43:21 UTC 2024
#45197: Introduce `user_can_for_blog()`
-----------------------------+--------------------------
Reporter: johnbillion | Owner: johnbillion
Type: enhancement | Status: reopened
Priority: normal | Milestone: 6.7
Component: Role/Capability | Version:
Severity: normal | Resolution:
Keywords: | Focuses: multisite
-----------------------------+--------------------------
Changes (by johnbillion):
* keywords: has-patch has-unit-tests needs-testing has-testing-info =>
* status: closed => reopened
* resolution: fixed =>
Comment:
Do we have that documented anywhere? While I agree that using site instead
of blog is preferable going forward (which I did for the docblock), in
this case I believe consistency with the existing
`current_user_can_for_blog()` function is more valuable. Otherwise we end
up with `current_user_can_for_blog()` and `user_can_for_site()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45197#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list