Changeset 56710 for trunk/src/wp-includes/blocks/latest-posts.php
- Timestamp:
- 09/26/2023 02:20:18 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/latest-posts.php
r56076 r56710 49 49 add_filter( 'excerpt_length', 'block_core_latest_posts_get_excerpt_length', 20 ); 50 50 51 $filter_latest_posts_excerpt_more = static function ( $more ) use ( $attributes ) {51 $filter_latest_posts_excerpt_more = static function ( $more ) use ( $attributes ) { 52 52 $use_excerpt = 'excerpt' === $attributes['displayPostContentRadio']; 53 53 /* translators: %1$s is a URL to a post, excerpt truncation character, default … */ … … 57 57 add_filter( 'excerpt_more', $filter_latest_posts_excerpt_more ); 58 58 59 if ( isset( $attributes['categories'] ) ) {59 if ( ! empty( $attributes['categories'] ) ) { 60 60 $args['category__in'] = array_column( $attributes['categories'], 'id' ); 61 61 }
Note: See TracChangeset
for help on using the changeset viewer.