I was messing around today with a wordpress plugin which is quite old and hasn’t been updated by the author for quite some time now. Most wordpress plugins use the wordpress global variable $wpdb but there was another global variable which is $tableposts which I’ve never seen before.
The fact is this:
$tableposts is a deprecated function and you should replace it with $wpdb->posts
$tableposts was deprecated in WordPress 2.1 and I’ve found some reference here.
Leave a Reply