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/post-comments-form.php

    r54257 r55246  
    2323    }
    2424
    25     $classes = 'comment-respond'; // See comment further below.
     25    $classes = array( 'comment-respond' ); // See comment further below.
    2626    if ( isset( $attributes['textAlign'] ) ) {
    27         $classes .= ' has-text-align-' . $attributes['textAlign'];
     27        $classes[] = 'has-text-align-' . $attributes['textAlign'];
    2828    }
    29 
    30     $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classes ) );
     29    if ( isset( $attributes['style']['elements']['link']['color']['text'] ) ) {
     30        $classes[] = 'has-link-color';
     31    }
     32    $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => implode( ' ', $classes ) ) );
    3133
    3234    add_filter( 'comment_form_defaults', 'post_comments_form_block_form_defaults' );
Note: See TracChangeset for help on using the changeset viewer.