Skip to content

Commit bd6d869

Browse files
committed
Merge pull request #120 from WP-API/fix-getcurrentuserinfo
Fix deprecated notice for 4.5
2 parents 58d57aa + 662c9f8 commit bd6d869

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

oauth-server.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ function rest_oauth1_force_reauthentication() {
9696
// Force reauthentication
9797
global $current_user;
9898
$current_user = null;
99-
get_currentuserinfo();
99+
100+
wp_get_current_user();
100101
}
101102
add_action( 'init', 'rest_oauth1_force_reauthentication', 100 );
102103

0 commit comments

Comments
 (0)