diff -r 48c4eec2b7e6 -r 8c2e4d02f4ef wp/wp-includes/blocks/rss.php --- a/wp/wp-includes/blocks/rss.php Fri Sep 05 18:40:08 2025 +0200 +++ b/wp/wp-includes/blocks/rss.php Fri Sep 05 18:52:52 2025 +0200 @@ -61,17 +61,20 @@ $author = $item->get_author(); if ( is_object( $author ) ) { $author = $author->get_name(); - $author = '' . sprintf( - /* translators: %s: the author. */ - __( 'by %s' ), - esc_html( strip_tags( $author ) ) - ) . ''; + if ( ! empty( $author ) ) { + $author = '' . sprintf( + /* translators: byline. %s: author. */ + __( 'by %s' ), + esc_html( strip_tags( $author ) ) + ) . ''; + } } } - $excerpt = ''; - if ( $attributes['displayExcerpt'] ) { - $excerpt = html_entity_decode( $item->get_description(), ENT_QUOTES, get_option( 'blog_charset' ) ); + $excerpt = ''; + $description = $item->get_description(); + if ( $attributes['displayExcerpt'] && ! empty( $description ) ) { + $excerpt = html_entity_decode( $description, ENT_QUOTES, get_option( 'blog_charset' ) ); $excerpt = esc_attr( wp_trim_words( $excerpt, $attributes['excerptLength'], ' […]' ) ); // Change existing [...] to […].