mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-01 19:09:12 +00:00
Avoid an IE8 JS error when removing a MediaElement player.
Props afercia. Merges [31386] to the 4.1 branch. Fixes #31058. Built from https://develop.svn.wordpress.org/branches/4.1@31395 git-svn-id: http://core.svn.wordpress.org/branches/4.1@31376 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
89150885b0
commit
a496c6b42f
@ -53,7 +53,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( 'native' !== t.media.pluginType ) {
|
if ( 'native' !== t.media.pluginType ) {
|
||||||
t.media.remove();
|
t.$media.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
delete window.mejs.players[t.id];
|
delete window.mejs.players[t.id];
|
||||||
|
2
wp-includes/js/media-audiovideo.min.js
vendored
2
wp-includes/js/media-audiovideo.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user