Make WordPress Core

Ticket #35709: 35709.diff

File 35709.diff, 699 bytes (added by afercia, 9 years ago)
  • src/wp-includes/widgets/class-wp-widget-recent-posts.php

     
    8282                <ul>
    8383                <?php while ( $r->have_posts() ) : $r->the_post(); ?>
    8484                        <li>
    85                                 <a href="<?php the_permalink(); ?>"><?php get_the_title() ? the_title() : the_ID(); ?></a>
     85                                <a href="<?php the_permalink(); ?>"><?php get_the_title() ? the_title() : _e( '(no title)' ); ?></a>
    8686                        <?php if ( $show_date ) : ?>
    8787                                <span class="post-date"><?php echo get_the_date(); ?></span>
    8888                        <?php endif; ?>