Ticket #15046: default-widgets_the_title_attribute.patch
| File default-widgets_the_title_attribute.patch, 797 bytes (added by drzraf, 3 years ago) |
|---|
-
default-widgets.php
549 549 <?php if ( $title ) echo $before_title . $title . $after_title; ?> 550 550 <ul> 551 551 <?php while ($r->have_posts()) : $r->the_post(); ?> 552 <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>552 <li><a href="<?php the_permalink() ?>" title="<?php echo esc_attr(get_the_title() ? the_title_attribute( 'echo=0' ) : get_the_ID()); ?>"><?php if ( get_the_title() ) the_title(); else the_ID(); ?></a></li> 553 553 <?php endwhile; ?> 554 554 </ul> 555 555 <?php echo $after_widget; ?>
