[wp-trac] [WordPress Trac] #48588: Unable to Replace Image in Image widget is using "Insert from URL"
WordPress Trac
noreply at wordpress.org
Wed Nov 13 06:13:31 UTC 2019
#48588: Unable to Replace Image in Image widget is using "Insert from URL"
----------------------------+-----------------------------
Reporter: dufresnesteven | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
**Version:**
5.3-RC5-46725
**Tested in:**
Chrome (Version 78.0.3904.97 (Official Build) (64-bit))
**Steps to Reproduce:**
- Visit Customize Page
- Click "Widgets"
- Click "Add Widget"
- Select "Image" widget
- Select "Add Image"
- Choose to "Insert From URL"
- Insert any image url [Example
(https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png)]
- Click "Add Widget"
- Click "Replace Image"
**Notice that the window to replace the image does not open as expected.**
\\
**Additional Information:**
- Works properly if the user has used an image from their Media Library
- If the user does the same action on a mobile device, works properly ->
Line in question -> (wp.media.isTouchDevice || e.url.focus())
- Reproduced on a number of different themes
\\
**Console:**
[media-widgets.min.js?m=1572623339h&ver=5.3-RC5-46725:1 Uncaught
TypeError: e.url.focus is not a function
at i.embedContent (VM915 media-widgets.min.js:1)
at p (VM868 backbone.min.js:1)
at f (VM868 backbone.min.js:1)
at l (VM868 backbone.min.js:1)
at h.Collection.n.trigger (VM868 backbone.min.js:1)
at i.<computed> [as trigger] (VM843 media-views.min.js:1)
at i.trigger (VM843 media-views.min.js:1)
at i.render (VM843 media-views.min.js:1)
at i.mode (VM843 media-views.min.js:1)
at i.render (VM843 media-views.min.js:1)]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48588>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list