[wp-hackers] change in database name variable?

Brian Layman Brian at TheCodeCave.com
Sun Jan 14 02:28:16 GMT 2007


Russ, 
Yes, there were separate variables that held the table names.  They were
depreciated in version 1.5 and the developers tried to get the word out
for this.  In the comments, the 1.5 code said that the variables would
be around for a few more months:

// We're going to need to keep this around for a few months even though
we're not using it
internally

$tableposts = $wpdb->posts;
$tableusers = $wpdb->users;
$tablecategories = $wpdb->categories;
$tablepost2cat = $wpdb->post2cat;
$tablecomments = $wpdb->comments;
$tablelinks = $wpdb->links;
$tablelinkcategories = $wpdb->linkcategories;
$tableoptions = $wpdb->options;
$tablepostmeta = $wpdb->postmeta;

As you can see the preferred way to access this information is through
the $wpdb->tablename method that was added to the (then) version 1.3
source code in the summer of 2004.  

As it is now 2007, the 2.1 release is FINALLY removing these variables
as the comments indicated would be done two years ago.

Please contact the author of those plugins and send them to this link:
http://wordpress.org/development/2006/12/naughty-or-nice/

That will help get them back on trac with the WordPress code.

______________________________________________
Brian Layman 
http://www.TheCodeCave.com



More information about the wp-hackers mailing list