Changeset 6155
- Timestamp:
- 09/22/2007 04:30:40 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/js/upload.js
r5631 r6155 202 202 h += "</tr><tr id='buttons' class='submit'><td colspan='2'><input type='button' id='delete' name='delete' class='delete alignleft' value='" + this.deleteText + "' onclick='theFileList.deleteFile(" + id + ");' />"; 203 203 h += "<input type='hidden' name='from_tab' value='" + this.tab + "' />"; 204 h += "<input type='hidden' name='post_parent' value='" + parseInt(this.postID,10) + "' />"; 204 205 h += "<input type='hidden' name='action' id='action-value' value='save' />"; 205 206 h += "<input type='hidden' name='ID' value='" + id + "' />"; -
trunk/wp-includes/post.php
r6121 r6155 1273 1273 } 1274 1274 1275 function wp_insert_attachment($object, $file = false, $p ost_parent = 0) {1275 function wp_insert_attachment($object, $file = false, $parent = 0) { 1276 1276 global $wpdb, $user_ID; 1277 1277 … … 1281 1281 1282 1282 $object = wp_parse_args($object, $defaults); 1283 if ( !empty($parent) ) 1284 $object['post_parent'] = $parent; 1285 1283 1286 $object = sanitize_post($object, 'db'); 1284 1287
Note: See TracChangeset
for help on using the changeset viewer.