Changeset 58187 for trunk/src/wp-includes/blocks/post-featured-image.php
- Timestamp:
- 05/23/2024 07:37:08 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/post-featured-image.php
r57377 r58187 8 8 /** 9 9 * Renders the `core/post-featured-image` block on the server. 10 * 11 * @since 5.8.0 10 12 * 11 13 * @param array $attributes Block attributes. … … 48 50 if ( ! empty( $attributes['scale'] ) ) { 49 51 $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 } 50 59 } 51 60 … … 126 135 * Generate markup for the HTML element that will be used for the overlay. 127 136 * 137 * @since 6.1.0 138 * 128 139 * @param array $attributes Block attributes. 129 140 * … … 192 203 * the Post Featured Image block. 193 204 * 205 * @since 6.1.0 206 * 194 207 * @param array $attributes The block attributes. 195 208 * @return array The border-related classnames and styles for the block. … … 242 255 /** 243 256 * Registers the `core/post-featured-image` block on the server. 257 * 258 * @since 5.8.0 244 259 */ 245 260 function register_block_core_post_featured_image() {
Note: See TracChangeset
for help on using the changeset viewer.