How to disable plupload completely from latest wordpress 3.6 and make browser upload default

How can I disable plupload completely from latest wordpress 3.6 and make browser upload default?

Thanks in advance.

Topic plupload uploads Wordpress

Category Web


This is how the plupload upoader is loaded on Media > Add New

do_action( 'pre-plupload-upload-ui' );

// all the html output for plupload's use

do_action( 'post-plupload-upload-ui' );

If it was this instead:

ob_start();

// all the html output for plupload's use

ob_end_clean();

Then no UI, no plupload:

add_action( 'pre-plupload-upload-ui', 'ob_start' );
add_action( 'post-plupload-upload-ui', 'ob_end_clean' );

However, the Add Media button on the post edit screen is a different ball game. Everything is pure js using backbone. I haven't got my hands dirty with those classes, yet. Someone else might be able to help with removing the Upload section from it and just have the Gallery. Or, you could

  1. Hide the default Add Media button using js or css.
  2. Hook into do_action( 'media_buttons', $editor_id ); to create your own Add Media button.
  3. Load your own UI.

But I'm not sure if that is a great idea.


To disable the Flash uploader add the following filter to functions.php

function disable_flash_uploader() {
    return $flash = false;
}
add_filter( 'flash_uploader', 'disable_flash_uploader', 7 ); 

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.