Forums

[Plugin: WP_Multilingual] Attachments URLs aren't working (5 posts)

  1. rafudu
    Member
    Posted 3 years ago #

    Hi!

    Is anyone having problems with attachments URLs? I can't display any attachments when a turn the plugin on. =/

    Thanks

  2. Oleg Butuzov
    Member
    Posted 3 years ago #

    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?

  3. rafudu
    Member
    Posted 3 years ago #

    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\"'/>

  4. Oleg Butuzov
    Member
    Posted 3 years ago #

    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;
    			}
  5. Oleg Butuzov
    Member
    Posted 3 years ago #

    <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

Topic Closed

This topic has been closed to new replies.

About this Topic