diff --git a/wp-includes/media.php b/wp-includes/media.php index 5fb5a27230..bf90a6e495 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -979,8 +979,11 @@ function wp_get_attachment_image_src( $attachment_id, $size = 'thumbnail', $icon $icon_dir = apply_filters( 'icon_dir', ABSPATH . WPINC . '/images/media' ); $src_file = $icon_dir . '/' . wp_basename( $src ); + list( $width, $height ) = wp_getimagesize( $src_file ); - $ext = strtolower( substr( $src_file, -4 ) ); + + $ext = strtolower( substr( $src_file, -4 ) ); + if ( '.svg' === $ext ) { // SVG does not have true dimensions, so this assigns width and height directly. $width = 48; diff --git a/wp-includes/version.php b/wp-includes/version.php index d0466a09dd..8ac188dfe0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-beta2-57693'; +$wp_version = '6.5-beta2-57694'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.