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-admin/install-helper.php

    r601 r1355  
    132132
    133133//check_column('wp_links', 'link_description', 'mediumtext');
    134 //if (check_column($tablecomments, 'comment_author', 'tinytext'))
     134//if (check_column($wpdb->comments, 'comment_author', 'tinytext'))
    135135//    echo "ok\n";
    136136$error_count = 0;
    137 $tablename = $tablelinks;
     137$tablename = $wpdb->links;
    138138// check the column
    139 if (!check_column($tablelinks, 'link_description', 'varchar(255)'))
     139if (!check_column($wpdb->links, 'link_description', 'varchar(255)'))
    140140{
    141     $ddl = "ALTER TABLE $tablelinks MODIFY COLUMN link_description varchar(255) NOT NULL DEFAULT '' ";
     141    $ddl = "ALTER TABLE $wpdb->links MODIFY COLUMN link_description varchar(255) NOT NULL DEFAULT '' ";
    142142    $q = $wpdb->query($ddl);
    143143}
    144 if (check_column($tablelinks, 'link_description', 'varchar(255)')) {
     144if (check_column($wpdb->links, 'link_description', 'varchar(255)')) {
    145145    $res .= $tablename . ' - ok <br />';
    146146} else {
Note: See TracChangeset for help on using the changeset viewer.