diff --git a/wp-admin/edit-attachment-rows.php b/wp-admin/edit-attachment-rows.php
index 48fbdbaf2..fc60dbefc 100644
--- a/wp-admin/edit-attachment-rows.php
+++ b/wp-admin/edit-attachment-rows.php
@@ -43,7 +43,7 @@ foreach($posts_columns as $column_name=>$column_display_name) {
case 'icon':
?>
-
ID, array(60, 40), false, true); ?> |
+ ID, array(80, 60), false, true); ?> |
$html";
+ if ( !empty($attachment['url']) ) {
+ if ( strpos($attachment['url'], 'attachment_id') || false !== strpos($attachment['url'], get_permalink($_POST['post_id'])) )
+ $rel = " rel='attachment wp-att-".attribute_escape($send_id)."'";
+ $html = "$html";
+ }
$html = apply_filters('media_send_to_editor', $html, $send_id, $attachment);
return media_send_to_editor($html);
}
@@ -527,7 +530,7 @@ function image_media_send_to_editor($html, $attachment_id, $attachment) {
else
$size = 'medium';
- return get_image_send_to_editor($attachment_id, $attachment['post_excerpt'], $attachment['post_title'], $align, $url, $rel, $size);
+ return get_image_send_to_editor($attachment_id, $attachment['post_excerpt'], $attachment['post_title'], $align, $url, true, $size);
}
return $html;
diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css
index ad77a0d95..38dc07f45 100644
--- a/wp-admin/wp-admin.css
+++ b/wp-admin/wp-admin.css
@@ -502,8 +502,8 @@ td.media-icon {
}
td.media-icon img {
- max-width: 60px;
- max-height: 40px;
+ max-width: 80px;
+ max-height: 60px;
}
#update-nag, .plugin-update {
diff --git a/wp-includes/js/swfupload/handlers.js b/wp-includes/js/swfupload/handlers.js
index 3dd3c4f1e..736948220 100644
--- a/wp-includes/js/swfupload/handlers.js
+++ b/wp-includes/js/swfupload/handlers.js
@@ -91,13 +91,16 @@ function deleteSuccess(data, textStatus) {
jQuery('.slidetoggle').slideUp(200).siblings().removeClass('hidden');
}
+ // Vanish it.
jQuery('#media-item-' + this.id + ' .filename:empty').remove();
jQuery('#media-item-' + this.id + ' .filename').append(' '+swfuploadL10n.deleted+'').siblings('a.toggle').remove();
- jQuery('#media-item-' + this.id + ' .describe').slideUp(500, function(){jQuery(this).parents('.media-item').slideUp(1500,function(){jQuery(this).remove();updateMediaForm();})}).end.remove();
+ jQuery('#media-item-' + this.id).children('.describe').css({backgroundColor:'#fff'}).end()
+ .animate({backgroundColor:'#ffc0c0'}, {queue:false,duration:50})
+ .animate({minHeight:0,height:36,}, 400, null, function(){jQuery(this).children('.describe').remove()})
+ .animate({backgroundColor:'#fff'}, 400)
+ .animate({height:0}, 800, null, function(){jQuery(this).remove();updateMediaForm();});
return;
- // Vanish it.
- item.slideToggle(300,function(){jQuery(this).remove();if(jQuery('.media-item').length==0)jQuery('.insert-gallery').hide();updateMediaForm();});
}
function deleteError(X, textStatus, errorThrown) {
diff --git a/wp-includes/media.php b/wp-includes/media.php
index ba761c07a..ba4acad4a 100644
--- a/wp-includes/media.php
+++ b/wp-includes/media.php
@@ -91,12 +91,12 @@ function image_downsize($id, $size = 'medium') {
}
// return an tag for the given image attachment, scaling it down if requested
-function get_image_tag($id, $alt, $title, $align, $rel = false, $size='medium') {
+function get_image_tag($id, $alt, $title, $align, $size='medium') {
list( $img_src, $width, $height ) = image_downsize($id, $size);
$hwstring = image_hwstring($width, $height);
- $html = '';
+ $html = '';
$html = apply_filters( 'image_send_to_editor', $html, $id, $alt, $title, $align, $url );