WordPress.org

Make WordPress Core

Ticket #4209: link-template.php.diff

File link-template.php.diff, 601 bytes (added by vladimir_kolesnikov, 5 years ago)

Updated version of 4209.1

  • link-template.php

     
    12061206 
    12071207        $title = apply_filters('the_title', $title, $post); 
    12081208        $date = mysql2date(get_option('date_format'), $post->post_date); 
     1209        $rel = $previous ? 'prev' : 'next'; 
    12091210 
    1210         $string = '<a href="'.get_permalink($post).'">'; 
     1211        $string = '<a href="'.get_permalink($post).'" rel="'.$rel.'">'; 
    12111212        $link = str_replace('%title', $title, $link); 
    12121213        $link = str_replace('%date', $date, $link); 
    12131214        $link = $string . $link . '</a>';