if ( $date ) { $date =
sprintf( '<time datetime="%1$s" class="wp-block-rss__item-publish-date">%2$s</time> ',
esc_attr( date_i18n( 'c',
$date ) ),
esc_attr( date_i18n( get_option( 'date_format'
),
$date ) ) );
} } $author = '';
if ( $attributes['displayAuthor'
] ) { $author =
$item->
get_author();
if ( is_object( $author ) ) { $author =
$author->
get_name();
$author = '<span class="wp-block-rss__item-author">' .
sprintf( /* translators: %s: the author. */
__( 'by %s'
),
esc_html( strip_tags( $author ) ) ) . '</span>';
} } $excerpt = '';