[wp-trac] [WordPress Trac] #35390: image_constrain_size_for_editor() should not affect images generated on the front end when `large` size is used.
WordPress Trac
noreply at wordpress.org
Sun Mar 13 20:42:14 UTC 2016
#35390: image_constrain_size_for_editor() should not affect images generated on the
front end when `large` size is used.
----------------------------------------+------------------------
Reporter: rabmalin | Owner: joemcgill
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 4.5
Component: Media | Version: 4.4
Severity: normal | Resolution:
Keywords: needs-unit-tests has-patch | Focuses:
----------------------------------------+------------------------
Changes (by jaspermdegroot):
* keywords: needs-patch needs-unit-tests => needs-unit-tests has-patch
Comment:
35390.patch makes it possible to prevent the call to
`image_constrain_size_for_editor()` in `image_downsize()`. By default the
new param `$constrain` is `true` and the function does exactly the same as
it did before.
When `wp_get_attachment_image_src()` calls `image_downsize()`,
`$constrain` is set to `false` because only images in the content should
be constrained to `$content_width`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35390#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list