Changeset 1355 for trunk/wp-includes/template-functions-links.php
- Timestamp:
- 05/24/2004 08:22:18 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-links.php
r1305 r1355 28 28 29 29 function get_permalink($id=false) { 30 global $post, $wpdb , $tableposts;30 global $post, $wpdb; 31 31 global $querystring_start, $querystring_equal; 32 32 … … 59 59 } 60 60 } 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"); 62 62 if ('' != get_settings('permalink_structure')) { 63 63 $unixtime = strtotime($idpost->post_date);
Note: See TracChangeset
for help on using the changeset viewer.