Make WordPress Core

Ticket #6979: media-upload.diff

File media-upload.diff, 2.1 KB (added by filosofo, 16 years ago)

[9421] didn't pick this up

  • wp-admin/media-upload.php

     
    1616        wp_die(__('You do not have permission to upload files.'));
    1717
    1818wp_enqueue_script('swfupload');
    19 wp_enqueue_script('swfupload-degrade');
     19wp_enqueue_script('swfupload-swfobject');
    2020wp_enqueue_script('swfupload-queue');
    2121wp_enqueue_script('swfupload-handlers');
    2222
  • wp-admin/includes/media.php

     
    12201220<!--
    12211221jQuery(function($){
    12221222        swfu = new SWFUpload({
     1223                        button_text: '<span class="button"><?php _e('Upload'); ?></span>',
     1224                        button_text_style: '.button { text-align: center; font-weight: bold; font-family:"Lucida Grande","Lucida Sans Unicode",Tahoma,Verdana,sans-serif; }',
     1225                        button_height: "24",
     1226                        button_width: "132",
     1227                        button_image_url: '<?php echo includes_url('images/upload.png'); ?>',
     1228                        button_placeholder_id: "async-upload-wrap",
    12231229                        upload_url : "<?php echo attribute_escape( $flash_action_url ); ?>",
    1224                         flash_url : "<?php echo includes_url('js/swfupload/swfupload_f9.swf'); ?>",
     1230                        flash_url : "<?php echo includes_url('js/swfupload/swfupload.swf'); ?>",
    12251231                        file_post_name: "async-upload",
    12261232                        file_types: "<?php echo apply_filters('upload_file_glob', '*.*'); ?>",
    12271233                        post_params : {
     
    12441250                        upload_complete_handler : uploadComplete,
    12451251                        file_queue_error_handler : fileQueueError,
    12461252                        file_dialog_complete_handler : fileDialogComplete,
     1253                        swfupload_pre_load_handler: swfuploadPreLoad,
     1254                        swfupload_load_failed_handler: swfuploadLoadFailed,
    12471255
    12481256                        debug: false
    12491257                });
     
    12631271
    12641272<div id="html-upload-ui">
    12651273<?php do_action('pre-html-upload-ui'); ?>
    1266         <p>
     1274        <p id="async-upload-wrap">
    12671275        <input type="file" name="async-upload" id="async-upload" /> <input type="submit" class="button" name="html-upload" value="<?php echo attribute_escape(__('Upload')); ?>" /> <a href="#" onclick="return top.tb_remove();"><?php _e('Cancel'); ?></a>
    12681276        </p>
    12691277