Make WordPress Core


Ignore:
Timestamp:
09/26/2023 02:20:18 PM (13 months ago)
Author:
karmatosed
Message:

Update editor related npm packages

The npm packages needed updating for 6.4 to the latest.

Props mikachan, mukesdpanchal27, luisherranz, youknowriad, tellthemachines, gziolo, ockham, michalczaplinski

Fixes #59411

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/latest-posts.php

    r56076 r56710  
    4949    add_filter( 'excerpt_length', 'block_core_latest_posts_get_excerpt_length', 20 );
    5050
    51     $filter_latest_posts_excerpt_more = static function( $more ) use ( $attributes ) {
     51    $filter_latest_posts_excerpt_more = static function ( $more ) use ( $attributes ) {
    5252        $use_excerpt = 'excerpt' === $attributes['displayPostContentRadio'];
    5353        /* translators: %1$s is a URL to a post, excerpt truncation character, default … */
     
    5757    add_filter( 'excerpt_more', $filter_latest_posts_excerpt_more );
    5858
    59     if ( isset( $attributes['categories'] ) ) {
     59    if ( ! empty( $attributes['categories'] ) ) {
    6060        $args['category__in'] = array_column( $attributes['categories'], 'id' );
    6161    }
Note: See TracChangeset for help on using the changeset viewer.