Make WordPress Core


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-trackback.php

    r1150 r1355  
    2929        trackback_response(1, 'Sorry, this weblog does not allow you to trackback its posts.');
    3030
    31     $pingstatus = $wpdb->get_var("SELECT ping_status FROM $tableposts WHERE ID = $tb_id");
     31    $pingstatus = $wpdb->get_var("SELECT ping_status FROM $wpdb->posts WHERE ID = $tb_id");
    3232
    3333    if ('closed' == $pingstatus)
     
    7373    }
    7474
    75     $result = $wpdb->query("INSERT INTO $tablecomments
     75    $result = $wpdb->query("INSERT INTO $wpdb->comments
    7676    (comment_post_ID, comment_author, comment_author_email, comment_author_url, comment_author_IP, comment_date, comment_date_gmt, comment_content, comment_approved)
    7777    VALUES
Note: See TracChangeset for help on using the changeset viewer.