From 53457e3b2f9597d8870995d40e6d1ec08484ee2e Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 17 Dec 2018 18:44:14 +0900 Subject: [PATCH] =?UTF-8?q?=EC=86=8C=EC=85=9C=EB=A1=9C=EA=B7=B8=EC=9D=B8?= =?UTF-8?q?=20=ED=8A=B8=EC=9C=84=ED=84=B0=20callback=5Furl=20=ED=91=9C?= =?UTF-8?q?=EA=B8=B0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/social/includes/functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/social/includes/functions.php b/plugin/social/includes/functions.php index c6ec4d512..fab949a88 100644 --- a/plugin/social/includes/functions.php +++ b/plugin/social/includes/functions.php @@ -52,6 +52,10 @@ function get_social_callbackurl($provider, $no_domain=false){ $base_url = '/'.ltrim(parse_url($base_url, PHP_URL_PATH), '/'); } + if ( $provider === 'twitter' ){ + return $base_url; + } + $base_url = $base_url . ( strpos($base_url, '?') ? '&' : '?' ).G5_SOCIAL_LOGIN_DONE_PARAM.'='.$provider; return $base_url;