PluginProbe
Gutenberg / 22.7.0
Gutenberg v22.7.0
24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 All 403 releases
← All changes | build/scripts/block-library/rss.php +1 -1 23.6.022.7.0 View file →
@@ -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>';