[wp-trac] [WordPress Trac] #45197: Introduce `user_can_for_blog()`
WordPress Trac
noreply at wordpress.org
Mon Sep 30 19:07:24 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
-----------------------------+--------------------------
Comment (by spacedmonkey):
> Or we clean this up by deprecating current_user_can_for_blog() in favor
of current_user_can_for_site(), and then introduce user_can_for_site().
This would be my recommendation as well. Maybe instead of adding a warning
message, we could “soft deprecate” it, by not adding the warning message.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45197#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list