Use of deprecated function get_currentinfo()
-
Hello,
Thanks for that fresh update. The issue I encounter was also present on the earlier version of UAM. When in debug mode (WP_DEBUG constant to “true” in config file), I get this message :
===========================Notice: get_currentuserinfo est <strong>déprécié</strong> depuis la version 4.5.0! Utilisez wp_get_current_user() à la place. in G:\wamp\www\my-site\wp-includes\functions.php on line 3706 Call Stack # Time Memory Function Location 1 0.0037 257136 {main}( ) ..\plugins.php:0 2 0.0053 300648 require_once( 'G:\wamp\www\my-site\wp-admin\admin.php' ) ..\plugins.php:10 3 1.7337 28909264 do_action( ) ..\admin.php:154 4 1.7476 29065496 call_user_func_array:{G:\wamp\www\my-site\wp-includes\plugin.php:524} ( ) ..\plugin.php:524 5 1.7476 29065752 userAccessManagerAP( ) ..\plugin.php:524 6 1.7478 29065992 get_currentuserinfo( ) ..\user-access-manager.php:124 7 1.7478 29066240 _deprecated_function( ) ..\pluggable-deprecated.php:49 8 1.7479 29066656 trigger_error ( ) ..\functions.php:3706
===========================
As noticed in this message, you should use on line 124 in user-access-manager.php the wp_get_current_user() function.
An advise : it is recommanded, when developping an extension, to work with debug mode activated ??Thanks in advance.
- The topic ‘Use of deprecated function get_currentinfo()’ is closed to new replies.