[wp-trac] [WordPress Trac] #38433: Complete test coverage for current_user_can_for_blog()

WordPress Trac noreply at wordpress.org
Fri Jan 31 08:25:23 UTC 2025


#38433: Complete test coverage for current_user_can_for_blog()
-------------------------------------------------+-------------------------
 Reporter:  johnbillion                          |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Role/Capability                      |     Version:  4.3
 Severity:  normal                               |  Resolution:
 Keywords:  needs-unit-tests good-first-bug      |     Focuses:
  has-patch needs-dev-note                       |
-------------------------------------------------+-------------------------

Comment (by michaelwp85):

 While looking for a good first ticket to contribute I looked at this one.

 I think this ticket can be closed, and marked as done. Seeing
 `current_user__can_for_blog` has been deprecated: ` * @deprecated 6.7.0
 Use current_user_can_for_site() instead.` I don't know the test coverage,
 but there are multiple tests for `current_user_can_for_site`.

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


More information about the wp-trac mailing list