Ticket #15046: rel_links_strip_tags.patch
File rel_links_strip_tags.patch, 878 bytes (added by , 13 years ago) |
---|
-
wp-includes/link-template.php
1084 1084 $title = apply_filters('the_title', $title, $post->ID); 1085 1085 1086 1086 $link = $previous ? "<link rel='prev' title='" : "<link rel='next' title='"; 1087 $link .= esc_attr( $title);1087 $link .= esc_attr( strip_tags( $title ) ); 1088 1088 $link .= "' href='" . get_permalink($post) . "' />\n"; 1089 1089 1090 1090 $adjacent = $previous ? 'previous' : 'next'; … … 1222 1222 $title = apply_filters('the_title', $title, $post->ID); 1223 1223 1224 1224 $link = $start ? "<link rel='start' title='" : "<link rel='end' title='"; 1225 $link .= esc_attr( $title);1225 $link .= esc_attr(strip_tags($title)); 1226 1226 $link .= "' href='" . get_permalink($post) . "' />\n"; 1227 1227 1228 1228 $boundary = $start ? 'start' : 'end';