Make WordPress Core


Ignore:
Timestamp:
07/09/2012 07:16:53 PM (12 years ago)
Author:
nacin
Message:

Fix the 'Display item date' configuration option for the Incoming Links dashboard widget. props Latz, SergeyBiryukov, fixes #20644.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r21160 r21249  
    814814            $text = __( '%1$s linked here saying, "%3$s"' );
    815815
    816         if ( !empty($show_date) ) {
    817             if ( !empty($show_author) || !empty($show_summary) )
    818                 /* translators: incoming links feed, %4$s is the date */
    819                 $text .= ' ' . __( 'on %4$s' );
     816        if ( !empty( $show_date ) ) {
     817            if ( $link )
     818                /* translators: incoming links feed, %1$s is other person, %3$s is content, %4$s is the date */
     819                $text = __( '%1$s linked here <a href="%2$s">saying</a>, "%3$s" on %4$s' );
     820            else
     821                /* translators: incoming links feed, %1$s is other person, %3$s is content, %4$s is the date */
     822                $text = __( '%1$s linked here saying, "%3$s" on %4$s' );
    820823            $date = esc_html( strip_tags( $item->get_date() ) );
    821824            $date = strtotime( $date );
Note: See TracChangeset for help on using the changeset viewer.