diff --git a/src/wp-includes/widgets/class-wp-widget-recent-posts.php b/src/wp-includes/widgets/class-wp-widget-recent-posts.php
index c137849..d9403bf 100644
|
a
|
b
|
class WP_Widget_Recent_Posts extends WP_Widget { |
| 93 | 93 | <ul> |
| 94 | 94 | <?php foreach ( $r->posts as $recent_post ) : ?> |
| 95 | 95 | <?php |
| 96 | | $post_title = get_the_title( $recent_post->ID ); |
| 97 | | $title = ( ! empty( $post_title ) ) ? $post_title : __( '(no title)' ); |
| | 96 | $post_title = get_the_title( $recent_post->ID ); |
| | 97 | $title = ( ! empty( $post_title ) ) ? $post_title : __( '(no title)' ); |
| | 98 | $aria_current = ( $recent_post->ID === get_the_ID() ) ? ' aria-current="page"' : ''; |
| 98 | 99 | ?> |
| 99 | 100 | <li> |
| 100 | | <a href="<?php the_permalink( $recent_post->ID ); ?>"><?php echo $title; ?></a> |
| | 101 | <a href="<?php the_permalink( $recent_post->ID ); ?>"<?php echo $aria_current; ?>><?php echo $title; ?></a> |
| 101 | 102 | <?php if ( $show_date ) : ?> |
| 102 | 103 | <span class="post-date"><?php echo get_the_date( '', $recent_post->ID ); ?></span> |
| 103 | 104 | <?php endif; ?> |