Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years 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: Focuses:

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 14 years ago.
I guess this is the crux of it.

Download all attachments as: .zip

Change History (11)

#1 @scribu
14 years ago

  • Summary Add meta caps for publish_post and perhaps create_postAdd meta cap for publish_post

For create_post: #16714

#2 @nacin
14 years ago

  • Milestone Awaiting Review3.5

We should definitely have a cap for publish_post.

#3 @greenshady
14 years ago

  • Cc justin@… added

#4 @bpetty
14 years ago

  • Keywords needs-patch added

#5 @technosailor
14 years ago

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

#6 @technosailor
14 years ago

meta_cap... Ignore me.

@nacin
14 years ago

I guess this is the crux of it.

#7 @nacin
14 years ago

  • Keywords has-patch added; needs-patch removed

#8 @ryan
14 years ago

Looks good.

#9 @ryan
14 years ago

  • Owner set to ryan
  • Resolutionfixed
  • Status newclosed

In [22056]:

Add publish_post meta cap. Props nacin. fixes #21288

Note: See TracTickets for help on using tickets.