Make WordPress Core


Ignore:
Timestamp:
11/08/2021 02:26:27 PM (3 years ago)
Author:
youknowriad
Message:

Block Editor: Update the WordPress Packages based on Gutenberg 11.9 RC1.

This brings the JS packages up to date and is the first step that will allow us
to include the other block editor updates for WordPress 5.9:
FSE infrastrucutre, site editor and global styles.

Props noisysocks.
See #54337.

File:
1 edited

Legend:

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

    r49324 r52042  
    4141        $archives = wp_get_archives( $dropdown_args );
    4242
     43        $classnames = esc_attr( $class );
     44
     45        $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classnames ) );
     46
    4347        switch ( $dropdown_args['type'] ) {
    4448            case 'yearly':
     
    6165        $label = esc_html( $label );
    6266
    63         $block_content = '<label class="screen-reader-text" for="' . $dropdown_id . '">' . $title . '</label>
     67        $block_content = '<label for="' . $dropdown_id . '">' . $title . '</label>
    6468    <select id="' . $dropdown_id . '" name="archive-dropdown" onchange="document.location.href=this.options[this.selectedIndex].value;">
    6569    <option value="">' . $label . '</option>' . $archives . '</select>';
    6670
    6771        return sprintf(
    68             '<div class="%1$s">%2$s</div>',
    69             esc_attr( $class ),
     72            '<div %1$s>%2$s</div>',
     73            $wrapper_attributes,
    7074            $block_content
    7175        );
Note: See TracChangeset for help on using the changeset viewer.