WordPress.org

Make WordPress Core

Ticket #4209: 4209.diff

File 4209.diff, 875 bytes (added by Nazgul, 7 years ago)
  • wp-includes/link-template.php

     
    438438                return; 
    439439 
    440440        $title = apply_filters('the_title', $post->post_title, $post); 
    441         $string = '<a href="'.get_permalink($post->ID).'">'; 
     441        $string = '<a href="'.get_permalink($post->ID).'" rel="prev">'; 
    442442        $link = str_replace('%title', $title, $link); 
    443443        $link = $pre . $string . $link . '</a>'; 
    444444 
     
    454454                return; 
    455455 
    456456        $title = apply_filters('the_title', $post->post_title, $post); 
    457         $string = '<a href="'.get_permalink($post->ID).'">'; 
     457        $string = '<a href="'.get_permalink($post->ID).'" rel="next">'; 
    458458        $link = str_replace('%title', $title, $link); 
    459459        $link = $string . $link . '</a>'; 
    460460        $format = str_replace('%link', $link, $format);