Skip to content

Commit 662c9f8

Browse files
committed
Use wp_get_current_user() to fix deprecated notice for
`get_currentuserinfo()`
1 parent 58d57aa commit 662c9f8

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)