Make WordPress Core


Ignore:
Timestamp:
02/07/2025 03:44:07 PM (20 months ago)
Author:
joemcgill
Message:

Editor: Update packages for 6.8 pre-Betas.

Syncs @wordpress/* packages to the 'latest' npm tag.

Props mamaduka, joemcgill, youknowriad, swissspidy, sergiomdgomes, gziolo.
See #62887.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/post-terms.php

    r58187 r59775  
    2525        }
    2626
    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 
    3227        $classes = array( 'taxonomy-' . $attributes['term'] );
    3328        if ( isset( $attributes['textAlign'] ) ) {
    … …  
    5247        }
    5348
    54         return get_the_term_list(
     49        $post_terms = get_the_term_list(
    5550                $block->context['postId'],
    5651                $attributes['term'],
    … …  
    5954                wp_kses_post( $suffix )
    6055        );
     56
     57        if ( is_wp_error( $post_terms ) || empty( $post_terms ) ) {
     58                return '';
     59        }
     60
     61        return $post_terms;
    6162}
    6263
Note: See TracChangeset for help on using the changeset viewer.