WordPress.org

Make WordPress Core

Changeset 11293


Ignore:
Timestamp:
05/12/2009 05:47:25 AM (12 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-widgets.php

    r11274 r11293  
    563563        <ul>
    564564        <?php  while ($r->have_posts()) : $r->the_post(); ?>
    565         <li><a href="<?php the_permalink() ?>"><?php if ( get_the_title() ) the_title(); else the_ID(); ?> </a></li>
     565        <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>
    566566        <?php endwhile; ?>
    567567        </ul>
Note: See TracChangeset for help on using the changeset viewer.