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

git-svn-id: http://core.svn.wordpress.org/trunk@21249 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-07-09 19:16:53 +00:00
parent cc06e13817
commit cacce8add0
1 changed files with 7 additions and 4 deletions

View File

@ -813,10 +813,13 @@ function wp_dashboard_incoming_links_output() {
/* translators: incoming links feed, %1$s is other person, %3$s is content */ /* translators: incoming links feed, %1$s is other person, %3$s is content */
$text = __( '%1$s linked here saying, "%3$s"' ); $text = __( '%1$s linked here saying, "%3$s"' );
if ( !empty($show_date) ) { if ( !empty( $show_date ) ) {
if ( !empty($show_author) || !empty($show_summary) ) if ( $link )
/* translators: incoming links feed, %4$s is the date */ /* translators: incoming links feed, %1$s is other person, %3$s is content, %4$s is the date */
$text .= ' ' . __( 'on %4$s' ); $text = __( '%1$s linked here <a href="%2$s">saying</a>, "%3$s" on %4$s' );
else
/* translators: incoming links feed, %1$s is other person, %3$s is content, %4$s is the date */
$text = __( '%1$s linked here saying, "%3$s" on %4$s' );
$date = esc_html( strip_tags( $item->get_date() ) ); $date = esc_html( strip_tags( $item->get_date() ) );
$date = strtotime( $date ); $date = strtotime( $date );
$date = gmdate( get_option( 'date_format' ), $date ); $date = gmdate( get_option( 'date_format' ), $date );