WordPress.org

Make WordPress Core

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


Ignore:
Timestamp:
04/20/2019 09:38:47 PM (10 months ago)
Author:
santilinwp
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #38433, comment 2

    v4 v5  
    1 I'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.
     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` takes the current site when the other site doesn't exist.
    22
    33I'll attach the diff and the output.