[wp-trac] [WordPress Trac] #45197: Introduce `user_can_for_blog()`

WordPress Trac noreply at wordpress.org
Tue Oct 8 22:31:15 UTC 2024


#45197: Introduce `user_can_for_blog()`
--------------------------------------+--------------------------
 Reporter:  johnbillion               |       Owner:  johnbillion
     Type:  task (blessed)            |      Status:  closed
 Priority:  normal                    |   Milestone:  6.7
Component:  Role/Capability           |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  multisite
--------------------------------------+--------------------------
Changes (by johnbillion):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"59198" 59198]:
 {{{
 #!CommitTicketReference repository="" revision="59198"
 Role/Capability: Introduce the `current_user_can_for_site()` and
 `user_can_for_site()` functions.

 The `current_user_can_for_site()` function is a replacement for
 `current_user_can_for_blog()` which is now deprecated.
 `user_can_for_site()` is a renaming of the `user_can_for_blog()` function
 which was introduced in [59123]. The intention of this change is to
 prevent the introduction of a new function which uses the old "blog"
 naming structure.

 Props swissspidy, spacedmonkey, flixos90, johnjamesjacoby

 Fixes #45197
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45197#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list