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:
parent
cc06e13817
commit
cacce8add0
|
@ -813,10 +813,13 @@ function wp_dashboard_incoming_links_output() {
|
|||
/* translators: incoming links feed, %1$s is other person, %3$s is content */
|
||||
$text = __( '%1$s linked here saying, "%3$s"' );
|
||||
|
||||
if ( !empty($show_date) ) {
|
||||
if ( !empty($show_author) || !empty($show_summary) )
|
||||
/* translators: incoming links feed, %4$s is the date */
|
||||
$text .= ' ' . __( 'on %4$s' );
|
||||
if ( !empty( $show_date ) ) {
|
||||
if ( $link )
|
||||
/* translators: incoming links feed, %1$s is other person, %3$s is content, %4$s is the date */
|
||||
$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 = strtotime( $date );
|
||||
$date = gmdate( get_option( 'date_format' ), $date );
|
||||
|
|
Loading…
Reference in New Issue