Make WordPress Core


Ignore:
Timestamp:
01/18/2006 07:16:31 PM (20 years ago)
Author:
ryan
Message:

Check upload_files cap for inline uploader. Props David House and doit-cu. fixes #2302

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/inline-uploading.php

    r3439 r3456  
    55header('Content-Type: text/html; charset=' . get_option('blog_charset'));
    66
    7 if (!current_user_can('edit_posts'))
    8     die(__('You do not have permission to edit posts.'));
     7if (!current_user_can('upload_files'))
     8    die(__('You do not have permission to upload files.'));
    99
    1010$wpvarstoreset = array('action', 'post', 'all', 'last', 'link', 'sort', 'start', 'imgtitle', 'descr', 'attachment');
Note: See TracChangeset for help on using the changeset viewer.