Make WordPress Core

Ticket #2302: inline-up.diff

File inline-up.diff, 618 bytes (added by doit-cu, 19 years ago)
  • inline-uploading.php

     
    44
    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 (!get_option('inline_upload'))
     8       die(__('You do not have permission to upload files.'));
    99
    1010$wpvarstoreset = array('action', 'post', 'all', 'last', 'link', 'sort', 'start', 'imgtitle', 'descr', 'attachment');
    1111