Skip to content

Commit fe7f452

Browse files
authored
Merge pull request #175 from WP-API/include-token-in-switch-user
Include the OAuth token when switching user
2 parents a0aa73e + c3e7cc1 commit fe7f452

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

theme/oauth1-authorize.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
$current_user = wp_get_current_user();
99

1010
$url = site_url( 'wp-login.php?action=oauth1_authorize', 'login_post' );
11+
$url = add_query_arg( 'oauth_token', $token_key, $url );
1112

1213
?>
1314

0 commit comments

Comments
 (0)