[wp-trac] [WordPress Trac] #43524: Add another default image size
WordPress Trac
noreply at wordpress.org
Mon Mar 12 15:11:10 UTC 2018
#43524: Add another default image size
-------------------------+------------------
Reporter: azaozz | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 5.0
Component: Media | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------
Comment (by birgire):
Sounds like {{{xlarge}}} could be a good addition, but then there's the
default 1600 maximum image width for the srcset:
{{{
/**
* Filters the maximum image width to be included in a 'srcset' attribute.
*
* @since 4.4.0
*
* @param int $max_width The maximum image width to be included in the
'srcset'. Default '1600'.
* @param array $size_array Array of width and height values in pixels (in
that order).
*/
$max_srcset_image_width = apply_filters( 'max_srcset_image_width', 1600,
$size_array );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43524#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list