WordPress.org

Make WordPress Core

Changes between Version 3 and Version 4 of Ticket #38433, comment 2


Ignore:
Timestamp:
04/20/2019 09:33:52 PM (2 years ago)
Author:
santilinwp
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #38433, comment 2

    v3 v4  
    1 I'm going to have a try at it!
     1I'v duplicated the calls in one function: `test_subscriber_cant_edit_posts` with the desired result, but then I have added a new function to test that an editor CAN edit their posts but no others in another site, but it looks like `current_user_can_for_blog` is always returning true when the other site doesn't exist.
     2
     3I'll attach the diff and the output.