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-description.php +1 -1 23.2.1 → 24.1.0 View file →
@@ -22,9 +22,9 @@
22 22 // Get term from context or from the current query.
23 23 if ( isset( $block->context['termId'] ) && isset( $block->context['taxonomy'] ) ) {
24 24 $term = get_term( $block->context['termId'], $block->context['taxonomy'] );
25 25 if ( $term && ! is_wp_error( $term ) ) {
26 - $term_description = $term->description;
26 + $term_description = get_term_field( 'description', $term );
27 27 }
28 28 } elseif ( is_category() || is_tag() || is_tax() ) {
29 29 $term_description = term_description();
30 30 }