Ticket #24232: 24232.diff
File 24232.diff, 943 bytes (added by , 11 years ago) |
---|
-
wp-includes/link-template.php
function get_adjacent_post_rel_link($title = '%title', $in_same_cat = false, $ex 1220 1220 if ( empty($post) ) 1221 1221 return; 1222 1222 1223 if ( empty($post->post_title) ) 1223 $post_title = get_the_title( $post->ID ); 1224 1225 if ( empty( $post_title ) ) 1224 1226 $post_title = $previous ? __('Previous Post') : __('Next Post'); 1225 else1226 $post_title = $post->post_title;1227 1227 1228 1228 $date = mysql2date(get_option('date_format'), $post->post_date); 1229 1229 1230 1230 $title = str_replace('%title', $post_title, $title); 1231 1231 $title = str_replace('%date', $date, $title); 1232 $title = apply_filters('the_title', $title, $post->ID);1232 $title = strip_tags( $title ); 1233 1233 1234 1234 $link = $previous ? "<link rel='prev' title='" : "<link rel='next' title='"; 1235 1235 $link .= esc_attr( $title );