]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/template-functions-links.php
Wordpress 2.0.4
[autoinstalls/wordpress.git] / wp-includes / template-functions-links.php
index 9ec7b331d0fa973d2907100c08aa2337f2699ea0..d14817bcef263700a63164fbf80318b1155b5f4a 100644 (file)
@@ -62,14 +62,15 @@ function get_permalink($id = 0) {
 
                $authordata = get_userdata($post->post_author);
                $author = $authordata->user_nicename;
+               $date = explode(" ",date('Y m d H i s', $unixtime));
                $rewritereplace = 
                array(
-                       date('Y', $unixtime),
-                       date('m', $unixtime),
-                       date('d', $unixtime),
-                       date('H', $unixtime),
-                       date('i', $unixtime),
-                       date('s', $unixtime),
+                       $date[0],
+                       $date[1],
+                       $date[2],
+                       $date[3],
+                       $date[4],
+                       $date[5],
                        $post->post_name,
                        $post->ID,
                        $category,