Skip to content

Commit 9d9f850

Browse files
committed
fix get current user on edit profile
1 parent 895ec27 commit 9d9f850

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/WP_Auth0_EditProfile.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@ public function override_email_update() {
268268
$errors = new WP_Error();
269269
}
270270

271-
$current_user = get_currentauth0user();
272-
$user_profile = $current_user->auth0_obj;
271+
$current_user = wp_get_current_user();
272+
$user_profile = get_currentauth0userinfo();
273273

274274
$app_token = $this->a0_options->get( 'auth0_app_token' );;
275275

0 commit comments

Comments
 (0)