Permalink
Browse files

refactoring to remove use of depricated function and global current u…

…ser var. fix for #331
  • Loading branch information...
Peter Adams
Peter Adams committed Aug 26, 2018
1 parent 9ff9cc0 commit f1ac75d0d12599ef19e0b1497763907178879ec0
Showing with 1 addition and 3 deletions.
  1. +1 −3 wp_plugin.php
@@ -308,9 +308,7 @@ function owa_wpAuthUser($auth_status) {
function owa_getCurrentWpUser() {
// Access WP current user object to check permissions
global $current_user;
get_currentuserinfo();
return $current_user;
return wp_get_current_user();
}

0 comments on commit f1ac75d

Please sign in to comment.