Created
November 4, 2013 09:24
-
-
Save kovshenin/7300131 to your computer and use it in GitHub Desktop.
Allow SWF file uploads in WordPress 3.7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Allow SWF uploads | |
* Description: This is insecure. | |
*/ | |
add_filter( 'upload_mimes', 'my_upload_mimes' ); | |
function my_upload_mimes( $mimes ) { | |
$mimes['swf'] = 'application/x-shockwave-flash'; | |
return $mimes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You mean to add a new plugin.php file or add these lines in the plugins.php file?