Make WordPress Core


Ignore:
Timestamp:
09/15/2008 11:48:24 PM (18 years ago)
Author:
ryan
Message:

Support %date in next post link template. Props noel. fixes #7726

File:
1 edited

Legend:

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

    r8890 r8896  
    651651
    652652        $title = apply_filters('the_title', $title, $post);
     653        $date = mysql2date(get_option('date_format'), $post->post_date);
     654       
    653655        $string = '<a href="'.get_permalink($post).'">';
    654656        $link = str_replace('%title', $title, $link);
     657        $link = str_replace('%date', $date, $link);
    655658        $link = $string . $link . '</a>';
    656659
Note: See TracChangeset for help on using the changeset viewer.