Ticket #2097: valid.diff
| File valid.diff, 4.2 KB (added by , 20 years ago) |
|---|
-
wp-includes/template-functions-post.php
534 534 } 535 535 } 536 536 537 $icon = "<img src=\"{$src}\" title=\"{$post->post_title}\" {$constraint}/>";537 $icon = "<img src=\"{$src}\" title=\"{$post->post_title}\" alt=\"{$post->post_title}\" {$constraint}/>"; 538 538 539 539 return apply_filters('attachment_icon', $icon, $post->ID); 540 540 } -
wp-admin/inline-uploading.php
232 232 $xpadding = (128 - $image['uwidth']) / 2; 233 233 $ypadding = (96 - $image['uheight']) / 2; 234 234 $style .= "#target{$ID} img { padding: {$ypadding}px {$xpadding}px; }\n"; 235 $script .= "aa[{$ID}] = '<a id=\" {$ID}\" rel=\"attachment\" class=\"imagelink\" href=\"$href\" onclick=\"doPopup({$ID});return false;\" title=\"{$image['post_title']}\">';235 $script .= "aa[{$ID}] = '<a id=\"p{$ID}\" rel=\"attachment\" class=\"imagelink\" href=\"$href\" onclick=\"doPopup({$ID});return false;\" title=\"{$image['post_title']}\">'; 236 236 ab[{$ID}] = '<a class=\"imagelink\" href=\"{$image['guid']}\" onclick=\"doPopup({$ID});return false;\" title=\"{$image['post_title']}\">'; 237 237 imga[{$ID}] = '<img id=\"image{$ID}\" src=\"$src\" alt=\"{$image['post_title']}\" $height_width />'; 238 238 imgb[{$ID}] = '<img id=\"image{$ID}\" src=\"{$image['guid']}\" alt=\"{$image['post_title']}\" $height_width />'; … … 255 255 $filename = basename($attachment['guid']); 256 256 $icon = get_attachment_icon($ID); 257 257 $toggle_icon = "<a id=\"I{$ID}\" onclick=\"toggleOtherIcon({$ID});return false;\" href=\"javascript:void()\">$__using_title</a>"; 258 $script .= "aa[{$ID}] = '<a id=\" {$ID}\" rel=\"attachment\" href=\"$href\" onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">{$attachment['post_title']}</a>';259 ab[{$ID}] = '<a id=\" {$ID}\" href=\"{$filename}\" onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">{$attachment['post_title']}</a>';258 $script .= "aa[{$ID}] = '<a id=\"p{$ID}\" rel=\"attachment\" href=\"$href\" onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">{$attachment['post_title']}</a>'; 259 ab[{$ID}] = '<a id=\"p{$ID}\" href=\"{$filename}\" onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">{$attachment['post_title']}</a>'; 260 260 title[{$ID}] = '{$attachment['post_title']}'; 261 261 filename[{$ID}] = '{$filename}'; 262 262 icon[{$ID}] = '{$icon}'; 263 263 "; 264 264 $html .= "<div id='target{$ID}' class='attwrap left'> 265 265 <div id='div{$ID}' class='otherwrap usingtext' onmousedown=\"selectLink({$ID})\" onclick=\"doPopup({$ID});return false;\"> 266 <a id=\" {$ID}\" href=\"{$attachment['guid']}\" onmousedown=\"selectLink({$ID});\" onclick=\"return false;\">{$attachment['post_title']}</a>266 <a id=\"p{$ID}\" href=\"{$attachment['guid']}\" onmousedown=\"selectLink({$ID});\" onclick=\"return false;\">{$attachment['post_title']}</a> 267 267 </div> 268 268 {$noscript} 269 269 </div> … … 346 346 function toggleOtherLink(n) { 347 347 od=document.getElementById('div'+n); 348 348 ol=document.getElementById('L'+n); 349 oi=document.getElementById( n);349 oi=document.getElementById('p'+n); 350 350 ih=oi.innerHTML; 351 351 if ( ol.innerHTML == linkedtofile ) { 352 352 od.innerHTML = aa[n]; … … 355 355 od.innerHTML = ab[n]; 356 356 ol.innerHTML = linkedtofile; 357 357 } 358 oi=document.getElementById( n);358 oi=document.getElementById('p'+n); 359 359 oi.innerHTML = ih; 360 360 } 361 361 function toggleImage(n) { … … 371 371 } 372 372 function toggleOtherIcon(n) { 373 373 od = document.getElementById('div'+n); 374 o = document.getElementById( n);374 o = document.getElementById('p'+n); 375 375 oi = document.getElementById('I'+n); 376 376 if ( oi.innerHTML == usingtitle ) { 377 377 o.innerHTML = filename[n]; -
wp-admin/admin-functions.php
93 93 return; 94 94 95 95 $i = 0; 96 $search = "# id=(\"| )(\d+)\\1#i";96 $search = "# id=(\"|')p(\d+)\\1#i"; 97 97 foreach ( $anchor_matches[0] as $anchor ) { 98 98 if ( 0 == preg_match($search, $anchor, $id_matches) ) 99 99 continue;