Make WordPress Core

Changeset 4648 for trunk/wp-settings.php


Ignore:
Timestamp:
12/15/2006 11:14:42 PM (19 years ago)
Author:
markjaquith
Message:

Use $wpdb->prefix when defining table names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r4489 r4648  
    9898    require_once (ABSPATH . WPINC . '/wp-db.php');
    9999
     100// $table_prefix is deprecated as of 2.1
     101$wpdb->prefix = $table_prefix;
     102
    100103// Table names
    101 $wpdb->posts            = $table_prefix . 'posts';
    102 $wpdb->users            = $table_prefix . 'users';
    103 $wpdb->categories       = $table_prefix . 'categories';
    104 $wpdb->post2cat         = $table_prefix . 'post2cat';
    105 $wpdb->comments         = $table_prefix . 'comments';
    106 $wpdb->link2cat         = $table_prefix . 'link2cat';
    107 $wpdb->links            = $table_prefix . 'links';
    108 $wpdb->linkcategories   = $table_prefix . 'linkcategories';
    109 $wpdb->options          = $table_prefix . 'options';
    110 $wpdb->postmeta         = $table_prefix . 'postmeta';
    111 $wpdb->usermeta         = $table_prefix . 'usermeta';
    112 
    113 $wpdb->prefix           = $table_prefix;
     104$wpdb->posts          = $wpdb->prefix . 'posts';
     105$wpdb->users          = $wpdb->prefix . 'users';
     106$wpdb->categories     = $wpdb->prefix . 'categories';
     107$wpdb->post2cat       = $wpdb->prefix . 'post2cat';
     108$wpdb->comments       = $wpdb->prefix . 'comments';
     109$wpdb->link2cat       = $wpdb->prefix . 'link2cat';
     110$wpdb->links          = $wpdb->prefix . 'links';
     111$wpdb->linkcategories = $wpdb->prefix . 'linkcategories';
     112$wpdb->options        = $wpdb->prefix . 'options';
     113$wpdb->postmeta       = $wpdb->prefix . 'postmeta';
     114$wpdb->usermeta       = $wpdb->prefix . 'usermeta';
    114115
    115116if ( defined('CUSTOM_USER_TABLE') )
Note: See TracChangeset for help on using the changeset viewer.