Make WordPress Core

Ticket #2302: inline-uploading.diff

File inline-uploading.diff, 601 bytes (added by doit-cu, 18 years ago)

Corrected inline-up.diff

  • 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 (!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');
    1111