| @@ -96,9 +96,9 @@ | ||
| 96 | 96 | $excerpt = html_entity_decode( $description, ENT_QUOTES, get_option( 'blog_charset' ) ); |
| 97 | 97 | $excerpt = esc_attr( wp_trim_words( $excerpt, $attributes['excerptLength'], ' […]' ) ); |
| 98 | 98 | |
| 99 | 99 | // Change existing [...] to […]. |
| 100 | - if ( str_ends_with( $excerpt, '[...]' ) ) { | |
| 100 | + if ( '[...]' === substr( $excerpt, -5 ) ) { | |
| 101 | 101 | $excerpt = substr( $excerpt, 0, -5 ) . '[…]'; |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | $excerpt = '<div class="wp-block-rss__item-excerpt">' . esc_html( $excerpt ) . '</div>'; |