WordPress.org

Make WordPress Core

Ticket #24232: adjacent_post_rel_link.diff

File adjacent_post_rel_link.diff, 547 bytes (added by mordauk, 2 years ago)
  • wp-includes/link-template.php

     
    12271227 
    12281228        $title = str_replace('%title', $post_title, $title); 
    12291229        $title = str_replace('%date', $date, $title); 
    1230         $title = apply_filters('the_title', $title, $post->ID); 
     1230        $title = esc_attr( strip_tags( $title ) ); 
    12311231 
    12321232        $link = $previous ? "<link rel='prev' title='" : "<link rel='next' title='"; 
    12331233        $link .= esc_attr( $title );