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-includes/template-functions-links.php

    r1305 r1355  
    2828
    2929function get_permalink($id=false) {
    30     global $post, $wpdb, $tableposts;
     30    global $post, $wpdb;
    3131    global $querystring_start, $querystring_equal;
    3232
     
    5959        }
    6060    } else { // if an ID is given
    61         $idpost = $wpdb->get_row("SELECT post_date, post_name FROM $tableposts WHERE ID = $id");
     61        $idpost = $wpdb->get_row("SELECT post_date, post_name FROM $wpdb->posts WHERE ID = $id");
    6262        if ('' != get_settings('permalink_structure')) {
    6363        $unixtime = strtotime($idpost->post_date);
Note: See TracChangeset for help on using the changeset viewer.