diff --git a/src/wp-admin/js/theme.js b/src/wp-admin/js/theme.js index 4f7eebfccf..d5dc9de10d 100644 --- a/src/wp-admin/js/theme.js +++ b/src/wp-admin/js/theme.js @@ -1265,7 +1265,7 @@ themes.RunInstaller = { self.view.trigger( 'theme:close' ); }); - themes.router.on( 'route:upload', function( slug ) { + themes.router.on( 'route:upload', function() { $( 'a.upload' ).trigger( 'click' ); }); diff --git a/src/wp-includes/js/customize-views.js b/src/wp-includes/js/customize-views.js index 263c84c58c..018852d58e 100644 --- a/src/wp-includes/js/customize-views.js +++ b/src/wp-includes/js/customize-views.js @@ -1,4 +1,3 @@ -/* globals _wpCustomizeHeader */ (function( $, wp, _ ) { if ( ! wp || ! wp.customize ) { return; } diff --git a/src/wp-includes/js/media-audiovideo.js b/src/wp-includes/js/media-audiovideo.js index dfc182b47e..ac411ea9c5 100644 --- a/src/wp-includes/js/media-audiovideo.js +++ b/src/wp-includes/js/media-audiovideo.js @@ -1,4 +1,4 @@ -/* global _wpMediaViewsL10n, _wpmejsSettings, MediaElementPlayer */ +/* global _wpMediaViewsL10n, _wpmejsSettings, MediaElementPlayer, tinymce, WPPlaylistView */ (function ($, _, Backbone) { var media = wp.media, l10n = typeof _wpMediaViewsL10n === 'undefined' ? {} : _wpMediaViewsL10n; diff --git a/src/wp-includes/js/media-views.js b/src/wp-includes/js/media-views.js index d082fbd362..aff81b7e4c 100644 --- a/src/wp-includes/js/media-views.js +++ b/src/wp-includes/js/media-views.js @@ -1,5 +1,4 @@ -/* global _wpMediaViewsL10n, _wpmejsSettings, MediaElementPlayer, - confirm, getUserSetting, setUserSetting */ +/* global _wpMediaViewsL10n, confirm, getUserSetting, setUserSetting */ (function($, _){ var media = wp.media, l10n;