Make WordPress Core


Ignore:
Timestamp:
02/07/2023 07:01:56 AM (2 years ago)
Author:
youknowriad
Message:

Block Editor: Updated the WordPress packages to include Gutenberg 15.1.0 changes.

In addition to all the packages being updated to the latest versions,
this commit also includes some mandatory changes to avoid editor breakage:

  • Update React to to 18.2.0.
  • Add the right stylesheets to support iframed block editors.

Props ntsekouras, mamaduka, flixos90, desrosj, peterwilsoncc.
See #57471.

File:
1 edited

Legend:

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

    r54257 r55246  
    1818    $show_post_count = ! empty( $attributes['showPostCounts'] );
    1919    $type            = isset( $attributes['type'] ) ? $attributes['type'] : 'monthly';
    20     $class           = '';
     20
     21    $class = 'wp-block-archives-list';
    2122
    2223    if ( ! empty( $attributes['displayAsDropdown'] ) ) {
    2324
    24         $class .= ' wp-block-archives-dropdown';
     25        $class = 'wp-block-archives-dropdown';
    2526
    2627        $dropdown_id = wp_unique_id( 'wp-block-archives-' );
     
    4142        $archives = wp_get_archives( $dropdown_args );
    4243
    43         $classnames = esc_attr( $class );
    44 
    45         $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classnames ) );
     44        $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $class ) );
    4645
    4746        switch ( $dropdown_args['type'] ) {
     
    7574        );
    7675    }
    77 
    78     $class .= ' wp-block-archives-list';
    7976
    8077    /** This filter is documented in wp-includes/widgets/class-wp-widget-archives.php */
Note: See TracChangeset for help on using the changeset viewer.