Make WordPress Core

Changeset 1355 for trunk/wp-mail.php


Ignore:
Timestamp:
05/24/2004 08:22:18 AM (21 years ago)
Author:
saxmatt
Message:

Giant commit, sorry mailing list people. Move all table names to new $wpdb versions. Works but the whole app needs thorough testing now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-mail.php

    r1313 r1355  
    122122
    123123
    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')";
    125125
    126126    $result = $wpdb->query($sql);
     
    139139
    140140    // 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");
    142142
    143143     if (!$exists && $result) {
    144144        $wpdb->query("
    145         INSERT INTO $tablepost2cat
     145        INSERT INTO $wpdb->post2cat
    146146        (post_id, category_id)
    147147        VALUES
Note: See TracChangeset for help on using the changeset viewer.