From 7ba0ac70b43daa50e8fcffba62c297c93d0e5aa6 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 17 Feb 2006 01:04:20 +0000 Subject: [PATCH] get_permalink() performance improvement from arnee. fixes #2463 git-svn-id: https://develop.svn.wordpress.org/trunk@3538 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/template-functions-links.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/wp-includes/template-functions-links.php b/wp-includes/template-functions-links.php index 3c6c155923..e22d4b777e 100644 --- a/wp-includes/template-functions-links.php +++ b/wp-includes/template-functions-links.php @@ -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,