Changeset 59775 for trunk/src/wp-includes/blocks/post-terms.php
- Timestamp:
- 02/07/2025 03:44:07 PM (12 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/blocks/post-terms.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/post-terms.php
r58187 r59775 25 25 } 26 26 27 $post_terms = get_the_terms( $block->context['postId'], $attributes['term'] );28 if ( is_wp_error( $post_terms ) || empty( $post_terms ) ) {29 return '';30 }31 32 27 $classes = array( 'taxonomy-' . $attributes['term'] ); 33 28 if ( isset( $attributes['textAlign'] ) ) { … … 52 47 } 53 48 54 returnget_the_term_list(49 $post_terms = get_the_term_list( 55 50 $block->context['postId'], 56 51 $attributes['term'], … … 59 54 wp_kses_post( $suffix ) 60 55 ); 56 57 if ( is_wp_error( $post_terms ) || empty( $post_terms ) ) { 58 return ''; 59 } 60 61 return $post_terms; 61 62 } 62 63
Note: See TracChangeset
for help on using the changeset viewer.