#20474 closed defect (bug) (invalid)
cap fixes in _wp_insert_post
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | XML-RPC | Version: | 3.4 |
| Severity: | critical | Keywords: | |
| Cc: |
Description
The patch validates 'publish_post' with post_ID to check whether the user is allowed to publish an already existing post
Attachments (1)
Change History (12)
nprasath002 — 13 months ago
- Owner set to ryan
- Resolution set to fixed
- Status changed from new to closed
- Resolution fixed deleted
- Status changed from closed to reopened
There isn't a publish_post cap...
The magic of meta caps: current_user_can( 'publish_post', $post_data[ 'ID' ] ) )
That should work with all post types, right?
get_post_type_capabilities() would also need an update. Probably not worth it for 3.4, but I think I'd like to finally do publish_post in 3.5 since this happens all the time.
There are edit_post/edit_posts checks above this block. I think all cap bases are covered.
comment:10
maxcutler — 13 months ago
- Resolution set to invalid
- Status changed from reopened to closed
- Keywords needs-patch removed
- Milestone 3.4 deleted
Note: See
TracTickets for help on using
tickets.

In [20568]: