Skip to content

Commit 7dd60d5

Browse files
Chance typing for sprintf() placeholder
Co-authored-by: Weston Ruter <[email protected]>
1 parent e69b2af commit 7dd60d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ function auto_sizes_calculate_better_sizes( int $id, $size, string $align, int $
204204
* on the server. Otherwise, we need to rely on CSS functions.
205205
*/
206206
if ( str_ends_with( $layout_width, 'px' ) ) {
207-
$layout_width = sprintf( '%1$spx', min( (int) $layout_width, $image_width ) );
207+
$layout_width = sprintf( '%dpx', min( (int) $layout_width, $image_width ) );
208208
} else {
209209
$layout_width = sprintf( 'min(%1$s, %2$spx)', $layout_width, $image_width );
210210
}

0 commit comments

Comments
 (0)