Changeset 1355 for trunk/wp-mail.php
- Timestamp:
- 05/24/2004 08:22:18 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-mail.php
r1313 r1355 122 122 123 123 124 $sql = "INSERT INTO $ tableposts (post_author, post_date, post_date_gmt, post_content, post_title, post_modified, post_modified_gmt) VALUES (1, '$post_date', '$post_date_gmt', '$content', '$post_title', '$post_date', '$post_date_gmt')";124 $sql = "INSERT INTO $wpdb->posts (post_author, post_date, post_date_gmt, post_content, post_title, post_modified, post_modified_gmt) VALUES (1, '$post_date', '$post_date_gmt', '$content', '$post_title', '$post_date', '$post_date_gmt')"; 125 125 126 126 $result = $wpdb->query($sql); … … 139 139 140 140 // Double check it's not there already 141 $exists = $wpdb->get_row("SELECT * FROM $ tablepost2cat WHERE post_id = $post_ID AND category_id = $post_category");141 $exists = $wpdb->get_row("SELECT * FROM $wpdb->post2cat WHERE post_id = $post_ID AND category_id = $post_category"); 142 142 143 143 if (!$exists && $result) { 144 144 $wpdb->query(" 145 INSERT INTO $ tablepost2cat145 INSERT INTO $wpdb->post2cat 146 146 (post_id, category_id) 147 147 VALUES
Note: See TracChangeset
for help on using the changeset viewer.