Skip to content

Commit efabb2b

Browse files
authored
Merge pull request #1743 from WordPress/update/1737-follow-up
Remove `auto_sizes_get_layout_settings()`
2 parents 1d44f3a + 28f6c39 commit efabb2b

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

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

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ function auto_sizes_calculate_better_sizes( int $id, $size, string $align, int $
229229
* @return string The alignment width based.
230230
*/
231231
function auto_sizes_get_layout_width( string $alignment ): string {
232-
$layout = auto_sizes_get_layout_settings();
232+
$layout = wp_get_global_settings( array( 'layout' ) );
233233

234234
$layout_widths = array(
235235
'full' => '100vw', // Todo: incorporate useRootPaddingAwareAlignments.
@@ -295,14 +295,3 @@ function auto_sizes_filter_render_block_context( array $context, array $block ):
295295

296296
return $context;
297297
}
298-
299-
/**
300-
* Retrieves the layout settings defined in theme.json.
301-
*
302-
* @since n.e.x.t
303-
*
304-
* @return array<string, mixed> Associative array of layout settings.
305-
*/
306-
function auto_sizes_get_layout_settings(): array {
307-
return wp_get_global_settings( array( 'layout' ) );
308-
}

0 commit comments

Comments
 (0)