Changeset 1604 for trunk/wp-includes/functions-post.php
- Timestamp:
- 09/05/2004 02:03:51 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions-post.php
r1599 r1604 42 42 $result = $wpdb->query($sql); 43 43 $post_ID = $wpdb->insert_id; 44 45 wp_set_post_cats('',$post_ID,$post_category); 44 45 // Set GUID 46 $wpdb->query("UPDATE $wpdb->posts SET guid = '" . get_permalink($post_ID) . "' WHERE ID = '$post_ID'"); 47 48 wp_set_post_cats('', $post_ID, $post_category); 46 49 47 50 if ($post_status == 'publish') { 48 51 do_action('publish_post', $post_ID); 49 52 } 53 54 pingback($content, $post_ID); 50 55 51 56 // Return insert_id if we got a good result, otherwise return zero.
Note: See TracChangeset
for help on using the changeset viewer.