Rest Urls are being incorrectly generated
-
Throughout the code you use
$callBackUrl = get_site_url() . '/wp-json/wslu-social-login/type/' . $typeSocial;
To generated the call back urls. Your doing it wrong – this will cause major errors on any site that doesnt use a very standard pretty urls (ie rewrite)
You need to use
get_rest_url(null,'/wslu-social-login/type/'
.$typeSocial
);You may need to pass the multisite blog id if the plugin supports multisite…
This is why people get errors when configuring oAuth fallbacks. Your plugin is telling them the wrong rest url.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Rest Urls are being incorrectly generated’ is closed to new replies.