Ticket #6979: media-upload.diff
File media-upload.diff, 2.1 KB (added by , 16 years ago) |
---|
-
wp-admin/media-upload.php
16 16 wp_die(__('You do not have permission to upload files.')); 17 17 18 18 wp_enqueue_script('swfupload'); 19 wp_enqueue_script('swfupload- degrade');19 wp_enqueue_script('swfupload-swfobject'); 20 20 wp_enqueue_script('swfupload-queue'); 21 21 wp_enqueue_script('swfupload-handlers'); 22 22 -
wp-admin/includes/media.php
1220 1220 <!-- 1221 1221 jQuery(function($){ 1222 1222 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", 1223 1229 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'); ?>", 1225 1231 file_post_name: "async-upload", 1226 1232 file_types: "<?php echo apply_filters('upload_file_glob', '*.*'); ?>", 1227 1233 post_params : { … … 1244 1250 upload_complete_handler : uploadComplete, 1245 1251 file_queue_error_handler : fileQueueError, 1246 1252 file_dialog_complete_handler : fileDialogComplete, 1253 swfupload_pre_load_handler: swfuploadPreLoad, 1254 swfupload_load_failed_handler: swfuploadLoadFailed, 1247 1255 1248 1256 debug: false 1249 1257 }); … … 1263 1271 1264 1272 <div id="html-upload-ui"> 1265 1273 <?php do_action('pre-html-upload-ui'); ?> 1266 <p >1274 <p id="async-upload-wrap"> 1267 1275 <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> 1268 1276 </p> 1269 1277