diff --git a/includes/lib/transifex-live-integration-rewrite.php b/includes/lib/transifex-live-integration-rewrite.php index 4ae3e16..d106cbe 100644 --- a/includes/lib/transifex-live-integration-rewrite.php +++ b/includes/lib/transifex-live-integration-rewrite.php @@ -180,7 +180,9 @@ function reverse_hard_link( $lang, $link, $languages_map, $source_lang, $pattern $parsed_url = parse_url($link); $link_host = isset($parsed_url['host']) ? $parsed_url['host'] : ''; // change only wordpress non-admin links - not links reffering to other domains - if ( $link_host === $site_host && strpos($link, '/wp-admin') === false ) { + if ( $link_host === $site_host && strpos($link, '/wp-admin') === false + && strpos($link, '/wp-content/uploads') === false + ) { /* Check if the path starts with the language code, * otherwise prepend it. */ $parsed = parse_url( $link );