WordPress.org

Make WordPress Core

Changeset 3538


Ignore:
Timestamp:
02/17/2006 01:04:20 AM (14 years ago)
Author:
ryan
Message:

get_permalink() performance improvement from arnee. fixes #2463

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-links.php

    r3517 r3538  
    6363        $authordata = get_userdata($post->post_author);
    6464        $author = $authordata->user_nicename;
     65        $date = explode(" ",date('Y m d H i s', $unixtime));
    6566        $rewritereplace =
    6667        array(
    67             date('Y', $unixtime),
    68             date('m', $unixtime),
    69             date('d', $unixtime),
    70             date('H', $unixtime),
    71             date('i', $unixtime),
    72             date('s', $unixtime),
     68            $date[0],
     69            $date[1],
     70            $date[2],
     71            $date[3],
     72            $date[4],
     73            $date[5],
    7374            $post->post_name,
    7475            $post->ID,
Note: See TracChangeset for help on using the changeset viewer.