4 votes

How to make get_current_user() return the same user as $_SERVER['AUTH_USER']?

PHP fixed a fifteen year old bug. You should update your script. It should not return the logged in user. It should return the owner of the script file. From php.net/get_current_user get_current_user(...
  • 5,168

Only top scored, non community-wiki answers of a minimum length are eligible