From 017550ea8e03f60516ea778cf29ccdd99dcfb36d Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Wed, 13 Jan 2016 17:38:18 +0000 Subject: [PATCH] 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 --- src/wp-includes/js/mediaelement/wp-mediaelement.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/js/mediaelement/wp-mediaelement.js b/src/wp-includes/js/mediaelement/wp-mediaelement.js index fe47d2f0c1..159794091b 100644 --- a/src/wp-includes/js/mediaelement/wp-mediaelement.js +++ b/src/wp-includes/js/mediaelement/wp-mediaelement.js @@ -56,6 +56,6 @@ window.wp.mediaelement = new wpMediaElement(); - $( document ).on( 'ready', window.wp.mediaelement.initialize ); + $( window.wp.mediaelement.initialize ); })( window, jQuery );