Changeset 6155 for trunk/wp-includes/post.php
- Timestamp:
- 09/22/2007 04:30:40 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.