Skip to content

Commit

Permalink
Make sure override happens after wp-plupload (#6525)
Browse files Browse the repository at this point in the history
* Make sure override happens after wp-plupload

* remove dequeue
  • Loading branch information
dbtlr authored and briancolinger committed Feb 28, 2017
1 parent a59d53a commit 7c34bfd
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions modules/videopress/class.jetpack-videopress.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,18 +144,12 @@ public function enqueue_admin_scripts() {
}

if ( $this->should_override_media_uploader() ) {
// We're going to replace the standard wp-plupload with our own ... messy, I know, but as of now the
// hooks in it are not good enough for us to be able to override / add in just the code we need.
// P.S. Please don't take this as an example of good behavior, this is a temporary fix until I
// can get a more permanent action / filter system added into the core wp-plupload.js to make this
// type of override unnecessary.
wp_dequeue_script( 'wp-plupload' );

wp_enqueue_script(
'videopress-plupload',
plugins_url( 'js/videopress-plupload.js', __FILE__ ),
array(
'jquery'
'jquery',
'wp-plupload'
),
$this->version
);
Expand Down

0 comments on commit 7c34bfd

Please sign in to comment.