﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
22417	_wp_translate_postdata() should use current_user_can( $ptype->cap->edit_post, $post_id )	danielbachhuber	westi	"Similar to #22415, _wp_translate_postdata() should use `current_user_can( $ptype->cap->edit_post, $post_id )` here:

{{{
$ptype = get_post_type_object( $post_data['post_type'] );
	if ( isset($post_data['user_ID']) && ($post_data['post_author'] != $post_data['user_ID']) ) {
		if ( !current_user_can( $ptype->cap->edit_others_posts ) ) {
}}}

I think this is problematic too:

{{{
if ( $previous_status != 'publish' || !current_user_can( 'edit_post', $post_id ) )
			$post_data['post_status'] = 'pending';
}}}

Switching to `current_user_can( $ptype->cap->edit_post, $post_id )` would mean that the context could be appropriately filtered."	defect (bug)	closed	low	3.5	Role/Capability		normal	fixed	has-patch	
