Commit 67984392eb for wordpress.org
commit 67984392eb4e48e15306661de191347fdc0bbd81
Author: peterwilsoncc <peterwilsoncc@git.wordpress.org>
Date: Mon Sep 21 00:57:49 2026 +0000
Media: Ensure cropped site icons generate square images.
Fixes a typo in `WP_Site_Icon::additional_sizes()` to ensure that sub-sizes generated for site icons are square. A trailing space on the `width ` key could cause the icon to be cropped to rectangles for the sub sizes.
Follow up to r32994.
Developed in https://github.com/WordPress/wordpress-develop/pull/11975
Props mohamedahamed, yusufmudagal, agnieszkablu, analogstudio, darshitrajyaguru97, davidbaumwald, jamesbregenzer, juanmaguitar, mukesh27, pedrofigueroa1989, sabernhardt, shailesh7714, swissspidy, tomatillo, ugyensupport, wildworks.
Fixes #65345.
Built from https://develop.svn.wordpress.org/trunk@63765
git-svn-id: http://core.svn.wordpress.org/trunk@62937 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-admin/includes/class-wp-site-icon.php b/wp-admin/includes/class-wp-site-icon.php
index 411302385c..3a7a160fc8 100644
--- a/wp-admin/includes/class-wp-site-icon.php
+++ b/wp-admin/includes/class-wp-site-icon.php
@@ -170,7 +170,7 @@ class WP_Site_Icon {
foreach ( $this->site_icon_sizes as $size ) {
if ( $size < $this->min_size ) {
$only_crop_sizes[ 'site_icon-' . $size ] = array(
- 'width ' => $size,
+ 'width' => $size,
'height' => $size,
'crop' => true,
);
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 86d11633f6..a73bbc3b46 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.2-alpha-63764';
+$wp_version = '7.2-alpha-63765';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.