Prevent Notices in Incoming links widget. Fixes #14617

git-svn-id: http://svn.automattic.com/wordpress/trunk@15849 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2010-10-19 10:52:46 +00:00
parent 0c1eb68663
commit ed9028c408

View File

@ -775,8 +775,8 @@ 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 ( $show_date ) {
if ( $show_author || $show_summary )
if ( !empty($show_date) ) {
if ( !empty($show_author) || !empty($show_summary) )
/* translators: incoming links feed, %4$s is the date */
$text .= ' ' . __( 'on %4$s' );
$date = esc_html( strip_tags( $item->get_date() ) );