WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#40197 new defect (bug)

meta cap 'publish_post' is not being used

Reported by: panjmp Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.5
Component: Role/Capability Keywords:
Focuses: administration Cc:

Description

#21288 adds publish_post to meta cap but it is not being called anywhere. I tried to log it using map_meta_cap at the post edit page. There is only publish_posts called but not publish_post

Change History (3)

#1 @swissspidy
2 years ago

Hey there,

Would you suggest using the publish_post meta cap where possible or removing it? Because just because core isn't using this capability doesn't mean plugins won't.

#2 @swissspidy
2 years ago

  • Version changed from 4.7.3 to 3.5

#3 @panjmp
2 years ago

Hi @swissspidy
I am suggesting that core should implement publish_post where possible since all other meta cap variables are used correctly.

I was working on an advanced role/capability system that allow specific group of users to have edit/publish access based on page's root ancestor. I still cannot find any workaround on this. Advices are thankfully welcomed.

Note: See TracTickets for help on using tickets.