diff --git a/wp-admin/inline-uploading.php b/wp-admin/inline-uploading.php
index 200a6f3ce0..7da2498588 100644
--- a/wp-admin/inline-uploading.php
+++ b/wp-admin/inline-uploading.php
@@ -171,6 +171,12 @@ linkedtopage = '$__linked_to_page';
linkedtofile = '$__linked_to_file';
usingthumbnail = '$__using_thumbnail';
usingoriginal = '$__using_original';
+var aa = new Array();
+var ab = new Array();
+var imga = new Array();
+var imgb = new Array();
+var srca = new Array();
+var srcb = new Array();
";
foreach ( $attachments as $key => $attachment ) {
$ID = $attachment['ID'];
@@ -192,8 +198,8 @@ usingoriginal = '$__using_original';
$image = & $attachment;
if ( ($image['width'] > 128 || $image['height'] > 96) && !empty($image['thumb']) && file_exists(dirname($image['file']).'/'.$image['thumb']) ) {
$src = str_replace(basename($image['guid']), $image['thumb'], $image['guid']);
- $script .= "src{$ID}a = '$src';
-src{$ID}b = '{$image['guid']}';
+ $script .= "srca[{$ID}] = '$src';
+srcb[{$ID}] = '{$image['guid']}';
";
$thumb = 'true';
$thumbtext = $__using_thumbnail;
@@ -207,10 +213,10 @@ src{$ID}b = '{$image['guid']}';
$xpadding = (128 - $image['uwidth']) / 2;
$ypadding = (96 - $image['uheight']) / 2;
$style .= "#target{$ID} img { padding: {$ypadding}px {$xpadding}px; }\n";
- $script .= "a{$ID}a = '';
-a{$ID}b = '';
-img{$ID}a = '';
-img{$ID}b = '';
+ $script .= "aa[{$ID}] = '';
+ab[{$ID}] = '';
+imga[{$ID}] = '';
+imgb[{$ID}] = '';
";
$html .= "