Commit da87333
committed
Toolbar: Add a 64px crop size for the site icon.
The toolbar and post embeds request `get_site_icon_url( 64 )` and build a
2x `srcset` for high-density displays, but `WP_Site_Icon` only generated
crops at 270, 192, 180, and 32 pixels. With no 64px crop available, the
request fell back to the next largest size — the default 150x150 thumbnail —
which is far larger than needed to render a 20x20 (or 28x28 on mobile) icon.
Add a 64px entry to the list of generated crop sizes so browsers can download
a much smaller file on retina displays. This also benefits post embeds, which
request the same size.
Developed in: WordPress#12607.
Props fushar, tyxla.
Fixes #65668.
git-svn-id: https://develop.svn.wordpress.org/trunk@62823 602fd350-edb4-49c9-b593-d223f7449a821 parent 05375dd commit da87333
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
| |||
0 commit comments