#20474 closed defect (bug) (invalid)
cap fixes in _wp_insert_post
| Reported by: | nprasath002 | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | XML-RPC | Version: | 3.4 |
| Severity: | critical | Keywords: | |
| Cc: | Focuses: |
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)
#4
@
14 years ago
The magic of meta caps: current_user_can( 'publish_post', $post_data[ 'ID' ] ) )
That should work with all post types, right?
#7
@
14 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In [20568]: