[wp-trac] [WordPress Trac] #41787: Media: JS error when removing a video/audio source
WordPress Trac
noreply at wordpress.org
Sun Sep 3 21:37:21 UTC 2017
#41787: Media: JS error when removing a video/audio source
--------------------------+-------------------------
Reporter: afercia | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.9
Component: Media | Version: trunk
Severity: normal | Keywords: needs-patch
Focuses: javascript |
--------------------------+-------------------------
Noticed while investigating on #38759.
To reproduce:
- add a video or audio in a post
- click on the video/audio player to make the edit details button appear
and click it
- a modal opens with the audio/video details
- click on "remove video source" (or audio)
- check your browser console:
`Uncaught TypeError: Cannot read property 'remove' of undefined`
Happens also when adding and then removing additional, alternate
video/audio sources.
Couldn't reproduce on stable 4.8.1 so seems a regression in trunk to me,
probably related to recent MediaElement.js update (seems to me the whole
$media and $node properties are missing).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41787>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list