Skip to content

Commit 99cee69

Browse files
Remove unused image_size variable
1 parent 80d0b56 commit 99cee69

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugins/auto-sizes/includes/improve-calculate-sizes.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,7 @@ function auto_sizes_filter_render_block_context( array $context, array $block, ?
390390
* @return int The featured image ID or 0 if not found.
391391
*/
392392
function auto_sizes_get_featured_image_id_from_block( WP_Block $block ): int {
393-
$image_size = $block->attributes['sizeSlug'] ?? 'full';
394-
$post_id = $block->context['postId'];
393+
$post_id = $block->context['postId'];
395394

396395
$post = get_post( $post_id );
397396

0 commit comments

Comments
 (0)