Revert Duolingo code to commit c9cebf0 with public API fix
This commit is contained in:
@@ -5273,7 +5273,7 @@ function argon_get_duolingo_data($force_refresh = false) {
|
||||
}
|
||||
}
|
||||
|
||||
$url = 'https://www.duolingo.com/2017-06-30/users?username=' . urlencode($username) . '&fields=streak,streakData%7BcurrentStreak,previousStreak%7D';
|
||||
$url = 'https://www.duolingo.com/2017-06-30/users?username=' . urlencode($username) . '&fields=users%7Bstreak,streakData%7BcurrentStreak,previousStreak%7D%7D';
|
||||
|
||||
$response = wp_remote_get($url, array(
|
||||
'timeout' => 15,
|
||||
|
||||
Reference in New Issue
Block a user