Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#47506 closed defect (bug) (invalid)

edit_published_posts capability is broken

Reported by: shlomi.tur Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.2.1
Component: Role/Capability Keywords:
Focuses: administration Cc:


Hi everyone,
After couple of days of debugging, I've just installed WordPress 5.2.1 and found that Contributors can edit their own posts after publishing by Editor.
Moreover, I've tried to turn off the capability manually by using the 'remove_cap' method, but there's no change.

This capability's default should be off as you can see here:

Change History (2)

#1 @johnbillion
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Thanks for the report, @shlomitur. As you've observed, contributors cannot edit their own published posts as they are not granted the edit_published_pages capability. The problem you're seeing must be local to your particular installation of WordPress.

I would recommend deactivating the plugins on your site one by one to see if one of them is overriding that capability. Also note that it is possible that a plugin granted that capability to an individual user with the Contributor role, or granted that capability to the Contributor role directly, in which case that capability might still be attached as they get stored persistently in the database.

Failing that, you can install a role and capability management plugin such as Members which will allow you to fix the capability.

#2 @SergeyBiryukov
3 years ago

  • Component changed from Users to Role/Capability
  • Severity changed from major to normal
Note: See TracTickets for help on using tickets.