Changeset 3538

Show
Ignore:
Timestamp:
02/17/06 01:04:20 (3 years ago)
Author:
ryan
Message:

get_permalink() performance improvement from arnee. fixes #2463

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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,