Ticket #11098: get_attachment_fields_to_edit.diff
| File get_attachment_fields_to_edit.diff, 673 bytes (added by scribu, 4 years ago) |
|---|
-
wp-admin/includes/media.php
1024 1024 'label' => __('File URL'), 1025 1025 'input' => 'html', 1026 1026 'html' => "<input type='text' class='urlfield' readonly='readonly' name='attachments[$post->ID][url]' value='" . esc_attr($image_url) . "' /><br />", 1027 'value' => isset($edit_post->post_url) ? $edit_post->post_url :wp_get_attachment_url($post->ID),1027 'value' => wp_get_attachment_url($post->ID), 1028 1028 'helps' => __('Location of the uploaded file.') 1029 1029 ) 1030 1030 );
