Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.5, 4.6
-
Fix Version/s: 4.7
-
Component/s: WordPress Integration
-
Labels:
-
Documentation Required?:None
-
Funding Source:Contributed Code
Description
The function "get_currentuserinfo" will be deprecated in WordPress 4.5. Currently Civi's 'admin.php' Javascript throws errors under WordPress 4.5 with WP_DEBUG = true because PHP warnings are written to the file. Solution is to replace usage of "get_currentuserinfo" with "wp_get_current_user()".