Make WordPress Core

Changeset 3823


Ignore:
Timestamp:
06/01/2006 05:48:36 AM (20 years ago)
Author:
ryan
Message:

get_permalink() performance improvement from arnee. fixes #2463

File:
1 edited

Legend:

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

    r3552 r3823  
    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.