Make WordPress Core


Ignore:
Timestamp:
05/23/2024 07:37:08 PM (9 months ago)
Author:
ellatrix
Message:

Editor: Update npm packages.

Updates the editor npm packages to latest versions.

See https://github.com/WordPress/wordpress-develop/pull/6612.

Props ellatrix, mukesh27, youknowriad, mamaduka.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/post-featured-image.php

    r57377 r58187  
    88/**
    99 * Renders the `core/post-featured-image` block on the server.
     10 *
     11 * @since 5.8.0
    1012 *
    1113 * @param array    $attributes Block attributes.
     
    4850    if ( ! empty( $attributes['scale'] ) ) {
    4951        $extra_styles .= "object-fit:{$attributes['scale']};";
     52    }
     53    if ( ! empty( $attributes['style']['shadow'] ) ) {
     54        $shadow_styles = wp_style_engine_get_styles( array( 'shadow' => $attributes['style']['shadow'] ) );
     55
     56        if ( ! empty( $shadow_styles['css'] ) ) {
     57            $extra_styles .= $shadow_styles['css'];
     58        }
    5059    }
    5160
     
    126135 * Generate markup for the HTML element that will be used for the overlay.
    127136 *
     137 * @since 6.1.0
     138 *
    128139 * @param array $attributes Block attributes.
    129140 *
     
    192203 * the Post Featured Image block.
    193204 *
     205 * @since 6.1.0
     206 *
    194207 * @param array $attributes The block attributes.
    195208 * @return array The border-related classnames and styles for the block.
     
    242255/**
    243256 * Registers the `core/post-featured-image` block on the server.
     257 *
     258 * @since 5.8.0
    244259 */
    245260function register_block_core_post_featured_image() {
Note: See TracChangeset for help on using the changeset viewer.