Add title attributes to links in recent entries widget. Props topncal, Denis-de-Bernardy. fixes #6091

git-svn-id: https://develop.svn.wordpress.org/trunk@11293 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-05-12 05:47:25 +00:00
parent bbf835ab0c
commit 5cc712d1e3
1 changed files with 1 additions and 1 deletions

View File

@ -562,7 +562,7 @@ class WP_Widget_Recent_Posts extends WP_Widget {
<?php if ( $title ) echo $before_title . $title . $after_title; ?>
<ul>
<?php while ($r->have_posts()) : $r->the_post(); ?>
<li><a href="<?php the_permalink() ?>"><?php if ( get_the_title() ) the_title(); else the_ID(); ?> </a></li>
<li><a href="<?php the_permalink() ?>" title="<?php echo esc_attr(get_the_title() ? get_the_title() : get_the_ID()); ?>"><?php if ( get_the_title() ) the_title(); else the_ID(); ?> </a></li>
<?php endwhile; ?>
</ul>
<?php echo $after_widget; ?>