get_permalink() performance improvement from arnee. fixes #2463

git-svn-id: https://develop.svn.wordpress.org/trunk@3538 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-02-17 01:04:20 +00:00
parent cb87fb3b7f
commit 7ba0ac70b4
1 changed files with 7 additions and 6 deletions

View File

@ -62,14 +62,15 @@ function get_permalink($id = 0) {
$authordata = get_userdata($post->post_author); $authordata = get_userdata($post->post_author);
$author = $authordata->user_nicename; $author = $authordata->user_nicename;
$date = explode(" ",date('Y m d H i s', $unixtime));
$rewritereplace = $rewritereplace =
array( array(
date('Y', $unixtime), $date[0],
date('m', $unixtime), $date[1],
date('d', $unixtime), $date[2],
date('H', $unixtime), $date[3],
date('i', $unixtime), $date[4],
date('s', $unixtime), $date[5],
$post->post_name, $post->post_name,
$post->ID, $post->ID,
$category, $category,