Changeset 9716 for trunk/wp-admin/includes/media.php
- Timestamp:
- 11/15/2008 06:10:35 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/media.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r9699 r9716 263 263 264 264 // Save the data 265 $id = wp_insert_attachment($attachment, $file, $post_ parent);265 $id = wp_insert_attachment($attachment, $file, $post_id); 266 266 if ( !is_wp_error($id) ) { 267 267 wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) ); … … 906 906 907 907 $edit_post = sanitize_post($post, 'edit'); 908 $file = wp_get_attachment_url($post->ID);909 $link = get_attachment_link($post->ID);910 908 911 909 $form_fields = array( … … 1020 1018 return false; 1021 1019 1022 $title_label = __('Title');1023 $description_label = __('Description');1024 $tags_label = __('Tags');1025 1026 1020 $toggle_on = __('Show'); 1027 1021 $toggle_off = __('Hide'); … … 1031 1025 $filename = basename($post->guid); 1032 1026 $title = attribute_escape($post->post_title); 1033 $description = attribute_escape($post->post_content); 1027 1034 1028 if ( $_tags = get_the_tags($attachment_id) ) { 1035 1029 foreach ( $_tags as $tag )
Note: See TracChangeset
for help on using the changeset viewer.