how do you look at attachments?
what plugin version?
what wp version?
from where you look at attachments?
what attachments urls? is they contain a language?
Thread Starter
rafudu
(@rafudu)
Hi!
Plugin: 2.1
WP: 2.6.2
When I insert the image on the post the image tag is wrong, for example:
<img width="234" height="132" wp-image-265\="" size-medium="" class='\"alignnone' title='\"jsfejtyzagm\"' alt='\"\"' src='\"wp-content/uploads/2008/11/jsfejtyzagm.png\"'/>
find this
function LanguageLink($link, $code){
global $home, $wp_rewrite, $language;
replace by this
function LanguageLink($link, $code){
global $home, $wp_rewrite, $language;
if (in_array(basename($_SERVER['PHP_SELF']), array('media-upload.php', 'async-upload.php'))){
return $link;
}
<img width="234" height="132" wp-image-265\="" size-medium="" class='\"alignnone' title='\"jsfejtyzagm\"' alt='\"\"' src='\"wp-content/uploads/2008/11/jsfejtyzagm.png\"'/>
btw – this isn’t related to my plugin bug. but bug exists course media-upload.php and async-upload dosn’t read by is_admin function