From f66b79b76aa97a4e7434e8f72d85a3d4298d3165 Mon Sep 17 00:00:00 2001 From: Stephen Edgar Date: Tue, 31 Aug 2021 20:00:06 +1000 Subject: [PATCH] Use `add_query_arg()` instead of `add_query_args()` Fixes #3 --- inc/class-provider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/class-provider.php b/inc/class-provider.php index cdd77ea..c9c83c6 100644 --- a/inc/class-provider.php +++ b/inc/class-provider.php @@ -355,6 +355,6 @@ public function resize( WP_Post $attachment, int $width, int $height, $crop = fa $query_args['crop'] = implode( ',', $crop ); } - return add_query_args( urlencode_deep( $query_args ), $base_url ); + return add_query_arg( urlencode_deep( $query_args ), $base_url ); } }