[wp-trac] [WordPress Trac] #45407: Add block attributes to `wp_calculate_image_sizes` to allow for proper handling of `sizes` attribute
WordPress Trac
noreply at wordpress.org
Sat Jan 5 11:30:48 UTC 2019
#45407: Add block attributes to `wp_calculate_image_sizes` to allow for proper
handling of `sizes` attribute
--------------------------+---------------------
Reporter: mor10 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.0.3
Component: Media | Version:
Severity: blocker | Resolution:
Keywords: dev-feedback | Focuses:
--------------------------+---------------------
Comment (by youknowriad):
I suggest we stop thinking about stop-gap fixes and think about a more
future-proof solution that doesn't involve tweaks from the theme.
Some ideas:
- Remove the image size picker
- Add a new default image size in WordPress (big one)
- A way for themes and block containers to define which size to use by
default for each alignment option. For example, when a user makes an image
"wide", the default "src" used switches to the big image size which means
the filter will adjust the sizes attribute accordingly.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45407#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list