Ticket #49239: async-upload.php.patch
| File async-upload.php.patch, 556 bytes (added by , 6 years ago) |
|---|
-
async-upload.php
42 42 if ( isset( $_REQUEST['attachment_id'] ) && intval( $_REQUEST['attachment_id'] ) && $_REQUEST['fetch'] ) { 43 43 $id = intval( $_REQUEST['attachment_id'] ); 44 44 $post = get_post( $id ); 45 if ( 'attachment' != $post->post_type ) {45 if ( 'attachment' !== $post->post_type ) { 46 46 wp_die( __( 'Invalid post type.' ) ); 47 47 } 48 48 if ( ! current_user_can( 'edit_post', $id ) ) {