mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Cap migration.
git-svn-id: https://develop.svn.wordpress.org/trunk@2720 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -5,13 +5,10 @@ $title = 'Upload Image or File';
|
||||
|
||||
require_once('admin-header.php');
|
||||
|
||||
if ($user_level == 0) //Checks to see if user has logged in
|
||||
die (__("Cheatin' uh ?"));
|
||||
|
||||
if (!get_settings('use_fileupload')) //Checks if file upload is enabled in the config
|
||||
die (__("The admin disabled this function"));
|
||||
|
||||
if ( !get_settings('fileupload_minlevel') )
|
||||
if ( ! current_user_can('upload_files') )
|
||||
die (__("You are not allowed to upload files"));
|
||||
|
||||
$allowed_types = explode(' ', trim(strtolower(get_settings('fileupload_allowedtypes'))));
|
||||
|
||||
Reference in New Issue
Block a user