From 83310dbf142f5f35bb111fa382cbe89da4000860 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Gayot?= Date: Wed, 8 Jul 2020 12:32:03 +0200 Subject: [PATCH] :bug: Fix use with WPML --- aq_resizer.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/aq_resizer.php b/aq_resizer.php index 8521360..d850471 100644 --- a/aq_resizer.php +++ b/aq_resizer.php @@ -233,13 +233,6 @@ function aq_upscale( $default, $orig_w, $orig_h, $dest_w, $dest_h, $crop ) { * need to change any code in your own WP themes. Usage is still the same :) */ function aq_resize( $url, $width = null, $height = null, $crop = null, $single = true, $upscale = false ) { - /* WPML Fix */ - if ( defined( 'ICL_SITEPRESS_VERSION' ) ){ - global $sitepress; - $url = $sitepress->convert_url( $url, $sitepress->get_default_language() ); - } - /* WPML Fix */ - $aq_resize = Aq_Resize::getInstance(); return $aq_resize->process( $url, $width, $height, $crop, $single, $upscale ); }