#20474 closed defect (bug) (invalid)
cap fixes in _wp_insert_post
Reported by: | nprasath002 | Owned by: | ryan |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | critical | Version: | 3.4 |
Component: | XML-RPC | Keywords: | |
Focuses: | 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)
#3
@
12 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
There isn't a publish_post cap...
#4
@
12 years ago
The magic of meta caps: current_user_can( 'publish_post', $post_data[ 'ID' ] ) )
That should work with all post types, right?
#7
@
12 years ago
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.
Note: See
TracTickets for help on using
tickets.
In [20568]: