PluginProbe
Gutenberg / 24.1.0
Gutenberg v24.1.0
24.1.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 All 404 releases
← All changes | build/scripts/block-library/term-name.php +1 -1 23.7.0 → 24.1.0 View file →
@@ -32,9 +32,9 @@
32 32 if ( ! $term || is_wp_error( $term ) ) {
33 33 return '';
34 34 }
35 35
36 - $term_name = $term->name;
36 + $term_name = get_term_field( 'name', $term );
37 37 $level = $attributes['level'] ?? 0;
38 38 $tag_name = 0 === $level ? 'p' : 'h' . (int) $level;
39 39
40 40 if ( isset( $attributes['isLink'] ) && $attributes['isLink'] ) {