[wp-trac] [WordPress Trac] #65345: Site Icon subsizes use wrong array key 'width ' instead of 'width'
WordPress Trac
noreply at wordpress.org
Thu Jun 4 20:57:45 UTC 2026
#65345: Site Icon subsizes use wrong array key 'width ' instead of 'width'
----------------------------------------------------+---------------------
Reporter: tomatillo | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 7.1
Component: Media | Version: 4.3
Severity: normal | Resolution:
Keywords: has-patch needs-testing has-unit-tests | Focuses:
----------------------------------------------------+---------------------
Comment (by jamesbregenzer):
Tested PR 11975 locally.
Environment:
- WordPress 7.1-alpha-62161-src
- Local wp-env/Docker environment
- PHP 8.5.6
Steps tested:
1. Uploaded a non-square image.
2. Set the uploaded image as the Site Icon from General Settings.
3. Cropped and saved the Site Icon.
4. Confirmed the site_icon option was set to the generated cropped
attachment.
5. Inspected the generated attachment metadata.
Result:
The generated site icon sizes are square as expected:
site_icon-270: 270x270
site_icon-192: 192x192
site_icon-180: 180x180
site_icon-32: 32x32
The patch tests successfully for me.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65345#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list