jQuery: Replace $( document ).on( 'ready', fn )
with $( fn )
.
The 'ready' event is deprecated since jQuery 1.8. See https://github.com/jquery/jquery-migrate/blob/1.3.0/warnings.md#jqmigrate-ready-event-is-deprecated. See #35380. git-svn-id: https://develop.svn.wordpress.org/trunk@36288 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e5223b57b4
commit
017550ea8e
@ -56,6 +56,6 @@
|
||||
|
||||
window.wp.mediaelement = new wpMediaElement();
|
||||
|
||||
$( document ).on( 'ready', window.wp.mediaelement.initialize );
|
||||
$( window.wp.mediaelement.initialize );
|
||||
|
||||
})( window, jQuery );
|
||||
|
Loading…
Reference in New Issue
Block a user