[wp-trac] [WordPress Trac] #35434: Copy-paste image with srcset makes replace-image features break
WordPress Trac
noreply at wordpress.org
Fri Jan 22 00:36:00 UTC 2016
#35434: Copy-paste image with srcset makes replace-image features break
--------------------------+-----------------------------
Reporter: programmin | Owner: joemcgill
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 4.5
Component: Editor | Version: 4.4.1
Severity: normal | Resolution:
Keywords: | Focuses: ui, javascript
--------------------------+-----------------------------
Changes (by azaozz):
* milestone: Awaiting Review => 4.5
Comment:
Replying to [comment:2 joemcgill]:
> ...replacing the image in the editor should also update (or remove) any
previous `srcset` and `sizes` attributes.
Right. The problem is that after replacing the image, the srcset still
points to the old image and the browsers use it over the src.
The correct fix is to remove both `srcset` and `sizes` for now. If the
next step is to insert images in the editor with these attributes, this
should work right.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35434#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list