Make WordPress Core


Ignore:
Timestamp:
10/20/2020 01:33:02 PM (4 years ago)
Author:
youknowriad
Message:

Block Editor: Update the WordPress Packages to the latest version.

This includes the packages that match the Gutenberg 9.2 Release.
It is going to be the last block-editor features update for WordPress 5.6.
It also updates the block-supports code base to the latest APIs.

Props isabel_brison, noisysocks, desrosj.
Fixes #51570.

File:
1 edited

Legend:

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

    r49135 r49226  
    130130        $classnames[] = 'no-comments';
    131131    }
    132     $class = esc_attr( implode( ' ', $classnames ) );
     132    $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => implode( ' ', $classnames ) ) );
    133133
    134134    return ! empty( $comments ) ? sprintf(
    135         '<ol class="%1$s">%2$s</ol>',
    136         $class,
     135        '<ol %1$s>%2$s</ol>',
     136        $wrapper_attributes,
    137137        $list_items_markup
    138138    ) : sprintf(
    139         '<div class="%1$s">%2$s</div>',
    140         $class,
     139        '<div %1$s>%2$s</div>',
     140        $wrapper_attributes,
    141141        __( 'No comments to show.' )
    142142    );
Note: See TracChangeset for help on using the changeset viewer.