Ticket #19290: 19290.patch
File 19290.patch, 589 bytes (added by , 13 years ago) |
---|
-
wp-admin/admin-ajax.php
1479 1479 break; 1480 1480 case 'set-post-thumbnail': 1481 1481 $post_ID = intval( $_POST['post_id'] ); 1482 if ( !current_user_can( 'edit_post', $post_ID ) ) 1482 $post_type = get_post_type( $post_ID ); 1483 $post_type_object = get_post_type_object( $post_type ); 1484 if ( !current_user_can( $post_type_object->cap->edit_post, $post_ID ) ) 1483 1485 die( '-1' ); 1484 1486 $thumbnail_id = intval( $_POST['thumbnail_id'] ); 1485 1487