Add title attributes to links in recent entries widget. Props topncal, Denis-de-Bernardy. fixes #6091
git-svn-id: http://svn.automattic.com/wordpress/trunk@11293 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d7cfd506a4
commit
7ee0777c33
|
@ -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; ?>
|
||||
|
|
Loading…
Reference in New Issue