WordPress.org

Make WordPress Core

Ticket #19494: 19494.patch

File 19494.patch, 527 bytes (added by azaozz, 3 years ago)
  • wp-admin/async-upload.php

     
    2323unset($current_user); 
    2424require_once('./admin.php'); 
    2525 
    26 header('Content-Type: text/plain; charset=' . get_option('blog_charset')); 
     26header('Content-Type: text/html; charset=' . get_option('blog_charset')); 
    2727 
    2828if ( !current_user_can('upload_files') ) 
    2929        wp_die(__('You do not have permission to upload files.'));