Make WordPress Core

Changes between Initial Version and Version 8 of Ticket #38433


Ignore:
Timestamp:
08/12/2025 09:41:27 AM (7 months ago)
Author:
johnbillion
Comment:

Thanks so much for the patch @sachinrajcp123 . Would you like to open a GitHub pull request with those changes please so the test suite can run?

Also the function has been deprecated since this ticket was opened so I've changed the title. The preferred function name is now current_user_can_for_site().

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #38433

    • Property Keywords good-first-bug has-patch has-unit-tests added; needs-unit-tests removed
    • Property Summary changed from Complete test coverage for current_user_can_for_blog() to Complete test coverage for current_user_can_for_site()
  • Ticket #38433 – Description

    initial v8  
    1 In `Tests_User_Capabilities`, all roles and capabilities are tested using `current_user_can()`. They should all be tested using `current_user_can_for_blog()`, too.
     1In `Tests_User_Capabilities`, all roles and capabilities are tested using `current_user_can()`. They should all be tested using `current_user_can_for_site()`, too.