Skip to content

Commit

Permalink
php code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
benazeer-ben committed Nov 20, 2024
1 parent d404f18 commit 28f2e9d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/block-library/src/rss/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ function render_block_core_rss( $attributes ) {

// Manually add block support text decoration as CSS class.
$text_decoration = $attributes['style']['typography']['textDecoration'] ?? null;
$inline_style = '';
if ( $text_decoration ) {
$inline_style = sprintf( 'text-decoration: %s;', $text_decoration );
}
$inline_style = $text_decoration ? sprintf( 'text-decoration: %s;', $text_decoration ) : '';

if ( $attributes['displayExcerpt'] && ! empty( $description ) ) {
$excerpt = html_entity_decode( $description, ENT_QUOTES, get_option( 'blog_charset' ) );
Expand Down

0 comments on commit 28f2e9d

Please sign in to comment.