Allow a plugin to force enable/disable the flash uploader. See #6406 props DD32.

git-svn-id: http://svn.automattic.com/wordpress/trunk@7550 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2008-03-27 17:37:37 +00:00
parent ba90d16134
commit a0706cbb8a

View File

@ -769,6 +769,7 @@ function media_upload_form( $errors = null ) {
if ( false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mac') && apache_mod_loaded('mod_security') )
$flash = false;
$flash = apply_filters('flash_uploader', $flash);
$post_id = intval($_REQUEST['post_id']);
?>