Make WordPress Core


Ignore:
Timestamp:
05/19/2021 03:07:55 PM (4 years ago)
Author:
gziolo
Message:

Editor: Update WordPress packages published for Gutenberg 10.6

It contains several changes in addition to regular update to WordPress packages:

  • All newly exposed blocks are now registered on the server.
  • Dutone block support was added.
  • Border block support was updated.
  • New shared function construct_wp_query_args was added for the family of Query blocks - it might need some further work.

Props youknowriad.
See #52991.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-supports/typography.php

    r50761 r50929  
    8080    $has_text_transform_support  = _wp_array_get( $block_type->supports, array( '__experimentalTextTransform' ), false );
    8181
     82    $skip_font_size_support_serialization = _wp_array_get( $block_type->supports, array( '__experimentalSkipFontSizeSerialization' ), false );
     83
    8284    // Font Size.
    83     if ( $has_font_size_support ) {
     85    if ( $has_font_size_support && ! $skip_font_size_support_serialization ) {
    8486        $has_named_font_size  = array_key_exists( 'fontSize', $block_attributes );
    8587        $has_custom_font_size = isset( $block_attributes['style']['typography']['fontSize'] );
Note: See TracChangeset for help on using the changeset viewer.