Changeset 6659
- Timestamp:
- 01/25/2008 07:21:11 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 11 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/css/media.css
r6579 r6659 42 42 font-weight: bold; 43 43 margin-bottom: 0.5em; 44 margin: 0 0 0.5em 0; 44 45 } 45 46 … … 59 60 60 61 .media-upload-form fieldset { 62 width: 100%; 61 63 border: none; 62 64 text-align: justify; 63 margin-bottom: 1em; 65 margin: 0 0 1em 0; 66 padding: 0; 64 67 } 65 68 … … 84 87 .media-upload-form fieldset#image-align label { 85 88 display: inline; 86 padding: 0 28px; 89 padding: 0 0 0 28px; 90 margin: 0 0; 87 91 } 88 92 … … 102 106 background: url(../images/align-right.png) no-repeat center left; 103 107 } 108 109 .pinkynail { 110 max-width: 40px; 111 max-height: 40px; 112 } 113 114 #multimedia-items { 115 border: 1px solid #c0c0c0; 116 border-bottom: none; 117 width: 623px; 118 } 119 .multimedia-item { 120 border-bottom: 1px solid #d0d0d0; 121 width: 623px; 122 position: relative; 123 } 124 span.filename { 125 position: absolute; 126 left: 46px; 127 top: 0px; 128 line-height: 36px; 129 z-index: 2; 130 } 131 .progress { 132 width: 623px; 133 height: 36px; 134 } 135 .bar { 136 width: 0px; 137 height: 36px; 138 background-color: #e8e8e8; 139 border-right: 3px solid #99d; 140 } 141 .multimedia-item .thumbnail { 142 143 } 144 .multimedia-item .pinkynail { 145 position: absolute; 146 top: 3px; 147 left: 3px; 148 max-width: 40px; 149 max-height: 40px; 150 } 151 .describe { 152 display: none; 153 border-top: 1px solid #d0d0d0; 154 padding: 5px; 155 } 156 .describe fieldset { 157 width: 470px; 158 float: right; 159 } 160 .describe img { 161 float: left; 162 } 163 .describe input[type="text"], .describe textarea { 164 width: 450px; 165 } 166 .describe label { 167 padding-right: 1em; 168 } 169 170 a.delete { 171 clear: both; 172 } 173 .describe-toggle-on, .describe-toggle-off { 174 line-height: 36px; 175 z-index: 2; 176 position: absolute; 177 top: 0px; 178 right: 20px; 179 } 180 .describe-toggle-off { 181 display: none; 182 } 183 .clickmask { 184 background: transparent; 185 position: absolute; 186 top: 0px; 187 left: 0px; 188 cursor: pointer; 189 border: none; 190 z-index: 10; 191 } -
trunk/wp-admin/includes/media.php
r6628 r6659 15 15 $image_title = attribute_escape( @$values['image-title'] ); 16 16 $image_align = @$values['image-url']; 17 17 $post_id = $_GET['post_id']; 18 18 19 ?> 19 20 <div id="media-upload-header"> … … 25 26 </ul> 26 27 </div> 27 <?php if ($error) { ?> 28 <div id="media-upload-error"> 29 <?php echo $error->get_error_message(); ?> 30 </div> 31 <?php } ?> 28 <div id="media-upload-error"> 29 <?php if ($error) { 30 echo $error->get_error_message(); 31 } ?> 32 </div> 33 <script type="text/javascript"> 34 <!-- 35 36 jQuery(document).ready(function(){ 37 var swfu = new SWFUpload({ 38 upload_url : "<?php echo get_option('siteurl').'/wp-admin/async-upload.php'; ?>", 39 flash_url : "<?php echo get_option('siteurl').'/wp-includes/js/swfupload/swfupload_f9.swf'; ?>", 40 file_post_name: "async-upload", 41 swfupload_element_id : "flash-upload-ui", // id of the element displayed when swfupload is available 42 degraded_element_id : "html-upload-ui", // when swfupload is unavailable 43 //file_types : "*.jpg;*.gif;*.png", 44 file_size_limit : "<?php echo wp_max_upload_size(); ?> B", 45 post_params : { 46 "post_id" : "<?php echo $post_id; ?>", 47 "auth_cookie" : "<?php echo $_COOKIE[AUTH_COOKIE]; ?>", 48 "type" : "image", 49 }, 50 swfupload_loaded_handler : uploadLoadedImage, 51 upload_progress_handler : uploadProgressImage, 52 upload_success_handler : uploadSuccessImage, 53 upload_error_handler: uploadError, 54 file_queued_handler : fileQueuedImage, 55 file_queue_error_handler : fileQueueError, 56 file_dialog_complete_handler : fileDialogComplete, 57 58 custom_settings : { 59 progressTarget : "flash-upload-ui", 60 cancelButtonId : "btnCancel2" 61 }, 62 63 debug: false, 64 65 }); 66 67 document.getElementById("flash-browse-button").onclick = function () { swfu.selectFile(); }; 68 }); 69 //--> 70 </script> 32 71 <form enctype="multipart/form-data" method="post" action="<?php echo attribute_escape($action_url); ?>" id="image-upload" class="media-upload-form"> 33 <p><label for="image-file"><?php _e('Choose image'); ?></label> 72 <p id="flash-upload-ui"> 73 <label for="flash-browse-button"><?php _e('Choose image'); ?></label> 74 <input id="flash-browse-button" type="button" value="<?php _e('Browse'); ?>" /> 75 <label for="image-file" class="form-help"><?php _e('Only PNG, JPG, GIF'); ?></label></p> 76 <p id="html-upload-ui"><label for="image-file"><?php _e('Choose image'); ?></label> 34 77 <input type="file" name="image-file" id="image-file" /> 35 78 <label for="image-file" class="form-help"><?php _e('Only PNG, JPG, GIF'); ?></label></p> … … 58 101 <a href="#" onclick="return top.tb_remove();" id="image-cancel" class="button-cancel"><?php _e('Cancel'); ?></a> 59 102 </p> 60 <input type="hidden" name="p arent_post_id" value="<?php echo attribute_escape('parent_post_id'); ?>" />103 <input type="hidden" name="post_id" value="<?php echo attribute_escape($post_id); ?>" /> 61 104 <?php wp_nonce_field( 'inlineuploading' ); ?> 62 105 </form> … … 70 113 } 71 114 72 check_admin_referer('inlineuploading');73 74 115 if ( empty($_POST['image-add']) ) { 75 116 // no button click, we're just displaying the form … … 78 119 else { 79 120 // Add Image button was clicked 80 $id = image_upload_post(); 121 check_admin_referer('inlineuploading'); 122 123 // if the async flash uploader was used, the attachment has already been inserted and its ID is passed in post. 124 // otherwise this is a regular form post and we still have to handle the upload and create the attachment. 125 if ( !empty($_POST['attachment_id']) ) { 126 $id = intval($_POST['attachment_id']); 127 // store the title and alt into the attachment post 128 wp_update_post(array( 129 'ID' => $id, 130 'post_title' => $_POST['image-title'], 131 'post_content' => $_POST['image-alt'], 132 )); 133 } 134 else { 135 $id = image_upload_post(); 136 } 81 137 82 138 // if the input was invalid, redisplay the form with its current values … … 89 145 } 90 146 147 // this returns html to include in the single image upload form when the async flash upload has finished 148 // i.e. show a thumb of the image, and include the attachment id as a hidden input 149 function async_image_callback($id) { 150 $thumb_url = wp_get_attachment_thumb_url($id); 151 if ( empty($thumb_url) ) 152 $thumb_url = wp_mime_type_icon($id); 153 154 if ($thumb_url) { 155 $out = '<p><input type="hidden" name="attachment_id" id="attachment_id" value="'.intval($id).'" />' 156 . '<img src="'.wp_get_attachment_thumb_url($id).'" class="pinkynail" /> ' 157 . basename(wp_get_attachment_url($id)).'</p>'; 158 } 159 else { 160 $out = '<p><input type="hidden" name="attachment_id" id="attachment_id" value="'.intval($id).'" />' 161 . basename(wp_get_attachment_url($id)).'</p>'; 162 } 163 164 $post = get_post($id); 165 $title = addslashes($post->post_title); 166 $alt = addslashes($post->post_content); 167 168 // populate the input fields with post data (which in turn comes from exif/iptc) 169 $out .= <<<EOF 170 <script type="text/javascript"> 171 <!-- 172 jQuery('#image-alt').val('{$alt}').attr('disabled', false); 173 jQuery('#image-title').val('{$title}').attr('disabled', false); 174 jQuery('#image-url').attr('disabled', false); 175 jQuery('#image-add').attr('disabled', false); 176 --> 177 </script> 178 EOF; 179 180 return $out; 181 } 182 183 add_filter('async_upload_image', 'async_image_callback'); 184 185 91 186 function image_send_to_editor($id, $alt, $title, $align, $url='') { 92 187 … … 98 193 $hwstring = ' width="'.intval($meta['width']).'" height="'.intval($meta['height']).'"'; 99 194 100 $html = '<img src="'.attribute_escape($img_src).'" alt="'.attribute_escape($alt).'" title="'.attribute_escape($title).'"'.$hwstring.' class="align-'.attribute_escape($align).'" />';195 $html = '<img src="'.attribute_escape($img_src).'" rel="attachment wp-att-'.attribute_escape($id).'" alt="'.attribute_escape($alt).'" title="'.attribute_escape($title).'"'.$hwstring.' class="align-'.attribute_escape($align).'" />'; 101 196 102 197 if ( $url ) … … 153 248 wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) ); 154 249 250 return $id; 251 } 252 253 // this handles the file upload POST itself, creating the attachment post 254 function media_handle_upload($file_id, $post_id, $post_data = array()) { 255 $overrides = array('test_form'=>false); 256 $file = wp_handle_upload($_FILES[$file_id], $overrides); 257 258 if ( isset($file['error']) ) 259 return new wp_error( 'upload_error', $file['error'] ); 260 261 $url = $file['url']; 262 $type = $file['type']; 263 $file = $file['file']; 264 $title = preg_replace('/\.[^.]+$/', '', basename($file)); 265 $content = ''; 266 267 // use image exif/iptc data for title and caption defaults if possible 268 if ( $image_meta = @wp_read_image_metadata($file) ) { 269 if ( trim($image_meta['title']) ) 270 $title = $image_meta['title']; 271 if ( trim($image_meta['caption']) ) 272 $content = $image_meta['caption']; 273 } 274 275 // Construct the attachment array 276 $attachment = array_merge( array( 277 'post_mime_type' => $type, 278 'guid' => $url, 279 'post_parent' => $post_id, 280 'post_title' => $title, 281 'post_content' => $content, 282 ), $post_data ); 283 284 // Save the data 285 $id = wp_insert_attachment($attachment, $file, $post_parent); 286 if ( !is_wp_error($id) ) { 287 wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) ); 288 } 289 155 290 return $id; 156 291 157 wp_redirect( get_option('siteurl') . "/wp-admin/upload.php?style=$style&tab=browse&action=view&ID=$id&post_id=$post_id"); 158 159 } 292 } 293 160 294 161 295 // wrap iframe content (produced by $content_func) in a doctype, html head/body etc … … 195 329 global $post_ID, $temp_ID; 196 330 $uploading_iframe_ID = (int) (0 == $post_ID ? $temp_ID : $post_ID); 197 $uploading_iframe_src = wp_nonce_url("media-upload.php?type=image&&post_id=$uploading_iframe_ID", 'inlineuploading'); 198 $uploading_iframe_src = apply_filters('uploading_iframe_src', $uploading_iframe_src); 331 $image_upload_iframe_src = wp_nonce_url("media-upload.php?type=image&post_id=$uploading_iframe_ID", 'inlineuploading'); 332 $image_upload_iframe_src = apply_filters('image_upload_iframe_src', $image_upload_iframe_src); 333 $multimedia_upload_iframe_src = wp_nonce_url("media-upload.php?type=multimedia&post_id=$uploading_iframe_ID", 'inlineuploading'); 334 $multimedia_upload_iframe_src = apply_filters('multimedia_upload_iframe_src', $multimedia_upload_iframe_src); 199 335 $out = <<<EOF 200 <a href="{$uploading_iframe_src}&TB_iframe=true&height=500&width=460" class="thickbox"> 336 <a href="{$multimedia_upload_iframe_src}&TB_iframe=true&height=500&width=640" class="thickbox">Multimedia</a> 337 <a href="{$image_upload_iframe_src}&TB_iframe=true&height=500&width=460" class="thickbox"> 201 338 <img src="./images/media-buttons.gif" alt="" /> 202 339 </a> … … 226 363 } 227 364 365 add_action('media_upload_multimedia', 'multimedia_upload_handler'); 228 366 add_action('media_upload_image', 'image_upload_handler'); 229 367 add_action('admin_head_image_upload_form', 'media_admin_css'); 230 368 369 function multimedia_upload_handler() { 370 if ( !current_user_can('upload_files') ) { 371 return new wp_error( 'upload_not_allowed', __('You are not allowed to upload files.') ); 372 } 373 374 if ( empty($_POST) ) { 375 // no button click, we're just displaying the form 376 wp_iframe( 'multimedia_upload_form' ); 377 } elseif ( empty($_POST['upload-button']) ) { 378 // Insert multimedia button was clicked 379 check_admin_referer('multimedia-form'); 380 381 if ( !empty($_POST['attachments']) ) foreach ( $_POST['attachments'] as $attachment_id => $attachment ) { 382 $post = $_post = get_post($attachment_id, ARRAY_A); 383 $post['post_content'] = $attachment['post_content']; 384 $post['post_title'] = $attachment['post_title']; 385 if ( $post != $_post ) 386 wp_update_post($post); 387 388 if ( $taxonomies = get_object_taxonomies('attachment') ) foreach ( $taxonomies as $t ) 389 if ( isset($attachment[$t]) ) 390 wp_set_object_terms($attachment_id, array_map('trim', preg_split('/,+/', $attachment[$t])), $t, false); 391 } 392 393 media_send_to_editor('[gallery]'); 394 } else { 395 // Upload File button was clicked 396 397 $id = media_handle_upload('async-upload', $_REQUEST['post_id']); 398 399 wp_iframe( 'multimedia_upload_form' ); 400 } 401 } 402 403 function get_multimedia_items( $post_id ) { 404 $attachments = get_children("post_parent=$post_id&post_type=attachment&orderby=\"menu_order ASC, ID ASC\""); 405 406 if ( empty($attachments) ) 407 return ''; 408 409 foreach ( $attachments as $id => $attachment ) { 410 $output .= "\n<div id='multimedia-item-$id' class='multimedia-item preloaded'><div id='media-upload-error-$id'></div><span class='filename'></span><div class='progress'><div class='bar'></div></div>"; 411 $output .= get_multimedia_item($id); 412 $output .= " <div class='progress clickmask'></div>\n</div>"; 413 } 414 415 return $output; 416 } 417 418 function get_multimedia_item( $attachment_id ) { 419 $thumb_url = wp_get_attachment_thumb_url( $attachment_id ); 420 if ( empty($thumb_url) ) 421 $thumb_url = wp_mime_type_icon( $attachment_id ); 422 423 $title_label = __('Title'); 424 $description_label = __('Description'); 425 $tags_label = __('Tags'); 426 427 $toggle_on = __('Describe »'); 428 $toggle_off = __('Describe «'); 429 430 $post = get_post($attachment_id); 431 432 $filename = basename($post->guid); 433 $title = attribute_escape($post->post_title); 434 $description = attribute_escape($post->post_content); 435 if ( $_tags = get_the_tags($attachment_id) ) { 436 foreach ( $_tags as $tag ) 437 $tags[] = $tag->name; 438 $tags = attribute_escape(join(', ', $tags)); 439 } 440 441 $delete_href = wp_nonce_url("post.php?action=delete-post&post=$attachment_id", 'delete-post_' . $attachment_id); 442 $delete = __('Delete'); 443 444 $item = " 445 <a class='toggle describe-toggle-on' href='#'>$toggle_on</a> 446 <a class='toggle describe-toggle-off' href='#'>$toggle_off</a> 447 <span class='filename new'>$filename</span> 448 <div class='slidetoggle describe'> 449 <img class='thumbnail' src='$thumb_url' alt='' /> 450 <fieldset> 451 <p><label for='attachments[$attachment_id][post_title]'>$title_label</label><input type='text' id='attachments[$attachment_id][post_title]' name='attachments[$attachment_id][post_title]' value='$title' /></p> 452 <p><label for='attachments[$attachment_id][post_content]'>$description_label</label><input type='text' id='attachments[$attachment_id][post_content]' name='attachments[$attachment_id][post_content]' value='$description' /></p> 453 "; 454 455 if ( $taxonomies = get_object_taxonomies('attachment') ) foreach ( $taxonomies as $t ) { 456 $tax = get_taxonomy($t); 457 $t_title = !empty($tax->title) ? $tax->title : $t; 458 if ( false === $terms = get_object_term_cache( $attachment_id, $t ) ) 459 $_terms = wp_get_object_terms($attachment_id, $t); 460 if ( $_terms ) { 461 foreach ( $_terms as $term ) 462 $terms[] = $term->name; 463 $terms = join(', ', $terms); 464 } else 465 $terms = ''; 466 $item .= "<p><label for='attachments[$attachment_id][$t]'>$t_title</label><input type='text' id='attachments[$attachment_id][$t]' name='attachments[$attachment_id][$t]' value='$terms' /></p>\n"; 467 } 468 469 $item .= " 470 </fieldset> 471 <p><a id='del$attachment_id' class='delete' href='$delete_href'>$delete</a></p> 472 </div> 473 "; 474 475 return $item; 476 } 477 478 function multimedia_upload_form( $error = null ) { 479 $flash_action_url = get_option('siteurl') . '/wp-admin/async-upload.php?type=multimedia'; 480 $form_action_url = get_option('siteurl') . '/wp-admin/media-upload.php?type=multimedia'; 481 482 $post_id = intval($_REQUEST['post_id']); 483 231 484 ?> 485 <div id="media-upload-header"> 486 <h3>Add Images</h3> 487 </div> 488 <div id="media-upload-error"> 489 <?php if ($error) { ?> 490 <?php echo $error->get_error_message(); ?> 491 <?php } ?> 492 </div> 493 <script type="text/javascript"> 494 <!-- 495 jQuery(function($){ 496 swfu = new SWFUpload({ 497 upload_url : "<?php echo attribute_escape( $flash_action_url ); ?>", 498 flash_url : "<?php echo get_option('siteurl').'/wp-includes/js/swfupload/swfupload_f9.swf'; ?>", 499 file_post_name: "async-upload", 500 file_types: "*.*", 501 post_params : { 502 "post_id" : "<?php echo $post_id; ?>", 503 "auth_cookie" : "<?php echo $_COOKIE[AUTH_COOKIE]; ?>", 504 "type" : "multimedia" 505 }, 506 swfupload_element_id : "flash-upload-ui", // id of the element displayed when swfupload is available 507 degraded_element_id : "html-upload-ui", // when swfupload is unavailable 508 //upload_start_handler : uploadStart, 509 upload_progress_handler : uploadProgressMultimedia, 510 //upload_error_handler : uploadError, 511 upload_success_handler : uploadSuccessMultimedia, 512 upload_complete_handler : uploadCompleteMultimedia, 513 file_dialog_start_handler : fileDialogStart, 514 file_queued_handler : fileQueuedMultimedia, 515 file_queue_error_handler : fileQueueError, 516 file_dialog_complete_handler : fileDialogComplete, 517 518 debug: false, 519 }); 520 $("#flash-browse-button").bind( "click", function(){swfu.selectFiles();}); 521 $("#insert-multimedia").bind( "click", function(){jQuery(this).parents('form').get(0).submit();}); 522 $(".multimedia-item.preloaded").each(function(){uploadSuccessMultimedia({id:this.id.replace(/[^0-9]/g, '')},'');jQuery('#insert-multimedia').attr('disabled', '');}); 523 $("a.delete").bind('click',function(){$.ajax({url:'admin-ajax.php',type:'post',data:{id:this.id.replace(/del/,''),action:'delete-post',_ajax_nonce:this.href.replace(/^.*wpnonce=/,'')}});$(this).parents(".multimedia-item").eq(0).slideToggle(300, function(){$(this).remove();});return false;}); 524 }); 525 //--> 526 </script> 527 <p id="flash-upload-ui" style="display:none"> 528 <input id="flash-browse-button" type="button" value="<?php _e('Choose Files'); ?>" /> 529 <label for="image-file" class="form-help"><?php _e('Only PNG, JPG, GIF'); ?></label> 530 </p> 531 532 <form enctype="multipart/form-data" method="post" action="<?php echo attribute_escape($form_action_url); ?>" class="media-upload-form"> 533 534 <div id="html-upload-ui"> 535 <p><label for="async-upload"><?php _e('Choose image'); ?></label> 536 <input type="file" name="async-upload" id="async-upload" /> 537 <label for="image-file" class="form-help"><?php _e('Only PNG, JPG, GIF'); ?></label> 538 </p> 539 <p> 540 <button id="upload-button" name="upload-button" value="1" class="button-ok"><?php _e('Add Image'); ?></button> 541 <a href="#" onClick="return top.tb_remove();" id="image-cancel" class="button-cancel"><?php _e('Cancel'); ?></a> 542 </p> 543 <input type="hidden" name="post_id" id="post_id" value="<?php echo $post_id; ?>" /> 544 <br style="clear:both" /> 545 </div> 546 547 548 549 <div id="multimedia-items"> 550 551 <?php echo get_multimedia_items($post_id); ?> 552 553 </div> 554 555 <p class="submit"> 556 <a href="#" onClick="return top.tb_remove();" id="image-cancel" class="button-cancel"><?php _e('Cancel'); ?></a> 557 <input type="button" class="submit" id="insert-multimedia" value="<?php _e('Insert gallery into post'); ?>" disabled="disabled" /> 558 </p> 559 560 <?php wp_nonce_field('multimedia-form'); ?> 561 562 </form> 563 564 <?php 565 } 566 567 add_action('admin_head_multimedia_upload_form', 'media_admin_css'); 568 add_filter('async_upload_multimedia', 'get_multimedia_item'); 569 add_filter('media_upload_multimedia', 'multimedia_upload_handler'); 570 571 // Any 'attachment' taxonomy will be included in the description input form for the multi uploader 572 // Example: 573 //register_taxonomy('attachment_people', 'attachment', array('title' => 'People')); 574 575 ?> -
trunk/wp-admin/includes/template.php
r6606 r6659 746 746 } 747 747 748 function wp_ import_upload_form( $action) {748 function wp_max_upload_size() { 749 749 $u_bytes = wp_convert_hr_to_bytes( ini_get( 'upload_max_filesize' ) ); 750 750 $p_bytes = wp_convert_hr_to_bytes( ini_get( 'post_max_size' ) ); 751 $bytes = apply_filters( 'import_upload_size_limit', min($u_bytes, $p_bytes), $u_bytes, $p_bytes ); 751 $bytes = apply_filters( 'upload_size_limit', min($u_bytes, $p_bytes), $u_bytes, $p_bytes ); 752 return $bytes; 753 } 754 755 function wp_import_upload_form( $action ) { 756 $bytes = apply_filters( 'import_upload_size_limit', wp_max_upload_size() ); 752 757 $size = wp_convert_bytes_to_hr( $bytes ); 753 758 ?> -
trunk/wp-admin/media-upload.php
r6579 r6659 1 1 <?php 2 2 require_once('admin.php'); 3 wp_enqueue_script('swfupload'); 4 wp_enqueue_script('swfupload-degrade'); 5 wp_enqueue_script('swfupload-queue'); 6 wp_enqueue_script('swfupload-handlers'); 3 7 4 8 @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); -
trunk/wp-includes/script-loader.php
r6649 r6659 86 86 $this->add( 'schedule', '/wp-includes/js/jquery/jquery.schedule.js', array('jquery'), '20'); 87 87 $this->add( 'thickbox', '/wp-includes/js/thickbox/thickbox.js', array('jquery'), '3.1'); 88 $this->add( 'swfupload', '/wp-includes/js/swfupload/swfupload.js', false, '2.0.2'); 89 $this->add( 'swfupload-degrade', '/wp-includes/js/swfupload/plugins/swfupload.graceful_degradation.js', array('swfupload'), '2.0.2'); 90 $this->add( 'swfupload-queue', '/wp-includes/js/swfupload/plugins/swfupload.queue.js', array('swfupload'), '2.0.2'); 91 $this->add( 'swfupload-handlers', '/wp-includes/js/swfupload/handlers.js', array('swfupload'), '2.0.2'); 92 // these error messages came from the sample swfupload js, they might need changing. 93 $this->localize( 'swfupload-handlers', 'swfuploadL10n', array( 94 'queue_limit_exceeded' => 'You have attempted to queue too many files.', 95 'file_exceeds_size_limit' => 'The file you have selected is too big.', 96 'zero_byte_file' => 'The file you selected is empty. Please select another file.', 97 'invalid_filetype' => 'The file you choose is not an allowed file type.', 98 'default_error' => 'An error occurred in the upload. Please try again later.', 99 'missing_upload_url' => 'There was a configuration error. Please contact the server administrator.', 100 'upload_limit_exceeded' => 'You may only upload 1 file.', 101 'http_error' => 'HTTP error.', 102 'upload_failed' => 'Upload failed.', 103 'io_error' => 'IO error.', 104 'security_error' => 'Security error.', 105 'file_cancelled' => 'File cancelled.', 106 'upload_stopped' => 'Upload stopped.', 107 108 ) ); 88 109 89 110 $this->add( 'jquery-ui-tabs', '/wp-includes/js/jquery/ui.tabs.js', array('jquery'), '3' ); -
trunk/wp-settings.php
r6586 r6659 257 257 require (ABSPATH . WPINC . '/update.php'); 258 258 require (ABSPATH . WPINC . '/canonical.php'); 259 require (ABSPATH . WPINC . '/shortcodes.php'); 259 260 260 261 if (strpos($_SERVER['PHP_SELF'], 'install.php') === false) {
Note: See TracChangeset
for help on using the changeset viewer.