Make WordPress Core


Ignore:
Timestamp:
10/11/2022 03:24:12 PM (3 years ago)
Author:
davidbaumwald
Message:

Editor: Update packages for 6.1 Release Candidate 1.

Package updates for bug and regression fixes:
@wordpress/block-directory: 3.15.6
@wordpress/block-editor: 10.0.6
@wordpress/block-library: 7.14.6
@wordpress/components: 21.0.5
@wordpress/customize-widgets: 3.14.6
@wordpress/edit-post: 6.14.6
@wordpress/edit-site: 4.14.8
@wordpress/edit-widgets: 4.14.6
@wordpress/editor: 12.16.6
@wordpress/format-library: 3.15.6
@wordpress/interface: 4.16.5
@wordpress/list-reusable-blocks: 3.15.5
@wordpress/nux: 5.15.5
@wordpress/preferences: 2.9.5
@wordpress/reusable-blocks: 3.15.6
@wordpress/server-side-render: 3.15.5
@wordpress/widgets: 2.15.6

References:

Follow-up to [54257], [54335], and [54383].

Props bernhard-reiter, czapla, annezazu, cbravobernal, ndiego, bjorsch, nendeb55.
See #56467.

File:
1 edited

Legend:

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

    r54257 r54483  
    382382
    383383    // Get typography styles to be shared across inner elements.
    384     $typography_styles = get_typography_styles_for_block_core_search( $attributes );
     384    $typography_styles = esc_attr( get_typography_styles_for_block_core_search( $attributes ) );
    385385    if ( ! empty( $typography_styles ) ) {
    386386        $label_styles [] = $typography_styles;
     
    443443    // Add typography styles.
    444444    if ( ! empty( $attributes['style']['typography']['fontSize'] ) ) {
    445         $typography_styles[] = sprintf( 'font-size: %s;', esc_attr( $attributes['style']['typography']['fontSize'] ) );
     445        $typography_styles[] = sprintf(
     446            'font-size: %s;',
     447            gutenberg_get_typography_font_size_value(
     448                array(
     449                    'size' => $attributes['style']['typography']['fontSize'],
     450                )
     451            )
     452        );
     453
    446454    }
    447455
    448456    if ( ! empty( $attributes['style']['typography']['fontFamily'] ) ) {
    449         $typography_styles[] = sprintf( 'font-family: %s;', esc_attr( $attributes['style']['typography']['fontFamily'] ) );
     457        $typography_styles[] = sprintf( 'font-family: %s;', $attributes['style']['typography']['fontFamily'] );
    450458    }
    451459
    452460    if ( ! empty( $attributes['style']['typography']['letterSpacing'] ) ) {
    453         $typography_styles[] = sprintf( 'letter-spacing: %s;', esc_attr( $attributes['style']['typography']['letterSpacing'] ) );
     461        $typography_styles[] = sprintf( 'letter-spacing: %s;', $attributes['style']['typography']['letterSpacing'] );
    454462    }
    455463
    456464    if ( ! empty( $attributes['style']['typography']['fontWeight'] ) ) {
    457         $typography_styles[] = sprintf( 'font-weight: %s;', esc_attr( $attributes['style']['typography']['fontWeight'] ) );
     465        $typography_styles[] = sprintf( 'font-weight: %s;', $attributes['style']['typography']['fontWeight'] );
    458466    }
    459467
    460468    if ( ! empty( $attributes['style']['typography']['fontStyle'] ) ) {
    461         $typography_styles[] = sprintf( 'font-style: %s;', esc_attr( $attributes['style']['typography']['fontStyle'] ) );
     469        $typography_styles[] = sprintf( 'font-style: %s;', $attributes['style']['typography']['fontStyle'] );
    462470    }
    463471
    464472    if ( ! empty( $attributes['style']['typography']['lineHeight'] ) ) {
    465         $typography_styles[] = sprintf( 'line-height: %s;', esc_attr( $attributes['style']['typography']['lineHeight'] ) );
     473        $typography_styles[] = sprintf( 'line-height: %s;', $attributes['style']['typography']['lineHeight'] );
    466474    }
    467475
    468476    if ( ! empty( $attributes['style']['typography']['textTransform'] ) ) {
    469         $typography_styles[] = sprintf( 'text-transform: %s;', esc_attr( $attributes['style']['typography']['textTransform'] ) );
     477        $typography_styles[] = sprintf( 'text-transform: %s;', $attributes['style']['typography']['textTransform'] );
    470478    }
    471479
Note: See TracChangeset for help on using the changeset viewer.