Ticket #32531: media_filename.patch
| File media_filename.patch, 623 bytes (added by , 11 years ago) |
|---|
-
wp-includes/media.php
2708 2708 $response = array( 2709 2709 'id' => $attachment->ID, 2710 2710 'title' => $attachment->post_title, 2711 'filename' => wp_basename( $attachment->guid),2711 'filename' => wp_basename( get_attached_file( $attachment->ID ) ), 2712 2712 'url' => $attachment_url, 2713 2713 'link' => get_attachment_link( $attachment->ID ), 2714 2714 'alt' => get_post_meta( $attachment->ID, '_wp_attachment_image_alt', true ),