Opened 10 months ago

Closed 8 months ago

Last modified 8 months ago

#21288 closed enhancement (fixed)

Add meta cap for publish_post

Reported by: gcorne Owned by: ryan
Priority: normal Milestone: 3.5
Component: Role/Capability Version:
Severity: normal Keywords: has-patch
Cc: justin@…

Description

While throughout the core codebase meta_caps for read_post, edit_post, and delete_post are used, there isn't a meta_cap for publish_post. For completeness, there should also be a meta_cap for create_post. Having more granular capabilities is important for developers that are trying to use WordPress for larger, more complex installations or as more of an application development framework.

Attachments (1)

21288.diff (552 bytes) - added by nacin 8 months ago.
I guess this is the crux of it.

Download all attachments as: .zip

Change History (11)

  • Summary changed from Add meta caps for publish_post and perhaps create_post to Add meta cap for publish_post

For create_post: #16714

  • Milestone changed from Awaiting Review to 3.5

We should definitely have a cap for publish_post.

  • Cc justin@… added
  • Keywords needs-patch added

There isn't edit_post, et all, but there is edit_posts. There is also publish_posts. Was this ticket fixed and not closed?

meta_cap... Ignore me.

nacin8 months ago

I guess this is the crux of it.

  • Keywords has-patch added; needs-patch removed

Looks good.

  • Owner set to ryan
  • Resolution set to fixed
  • Status changed from new to closed

In [22056]:

Add publish_post meta cap. Props nacin. fixes #21288

Note: See TracTickets for help on using tickets.