Ticket #1008: enclosure
File enclosure, 879 bytes (added by , 19 years ago) |
---|
Line | |
---|---|
1 | # enclosure support (by canopus) |
2 | $post_enclosure_struct = $content_struct['enclosure']; |
3 | if (!empty($post_enclosure_struct)) { |
4 | #convert metaweblog struct to meta_value format |
5 | $post_enclosure = $post_enclosure_struct[0] . "\n" . $post_enclosure_struct[1] . "\n" . $post_enclosure_struct[2]; |
6 | $result = $wpdb->query(" |
7 | INSERT INTO $wpdb->postmeta |
8 | (post_id,meta_key,meta_value) |
9 | VALUES ('$post_ID','enclosure','$post_enclosure') |
10 | "); |
11 | } |