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:
parent
cb87fb3b7f
commit
7ba0ac70b4
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue