WordPress.org

Make WordPress Core

Ticket #11098: get_attachment_fields_to_edit.diff

File get_attachment_fields_to_edit.diff, 673 bytes (added by scribu, 9 years ago)
  • wp-admin/includes/media.php

     
    10241024                        'label'      => __('File URL'),
    10251025                        'input'      => 'html',
    10261026                        '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),
    10281028                        'helps'      => __('Location of the uploaded file.')
    10291029                )
    10301030        );