• JoelDenne

    (@joeldenne)


    Hi

    In the lastest version 2.4 if you upload custom flags to wp-content/polylang then the img src is trying to show the full server path with the wordpress directory too, so it doesn’t work.

    It looks like its the ‘flag_url’ inside ‘get_elements( $links, $args ) – $links that is wrong. Line 44 of switcher.php

    I’ve had to rollback a version. Please fix!

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chouby

    (@chouby)

    i,

    It works on my test install. The url used is relative. For example wp-content/polylang/en_US.png. So it should no show the full server path.

    Thread Starter JoelDenne

    (@joeldenne)

    Hi

    We use bedrock so the wp-content directory is renamed to /app/

    It works fine on the old version 2.3.11 and outputs domain.com/app/polylang/en_US.png.

    When I upgrade to 2.4 and resave URLs as instructed it outputs a full server path which obviously does not resolve to a URL that works.

    Has anything changed in 2.4 with regards to where it gets the flag URLs?

    Plugin Author Chouby

    (@chouby)

    Yes, now the url is relative instead of absolute. Also I added the possibility to put the custom flags in a polylang subdirectory of the theme and the child theme.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Flag URLs broken in 2.4’ is closed to new replies.