Make WordPress Core

Ticket #2463: 2463.diff

File 2463.diff, 755 bytes (added by szepter, 18 years ago)

get_permalink code optimization

  • wp-includes/template-functions-links.php

     
    6262
    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,
    7576                        $category,