Title: Depreciated Code
Last modified: September 1, 2016

---

# Depreciated Code

 *  Resolved [designdrumm](https://wordpress.org/support/users/designdrumm/)
 * (@designdrumm)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/depreciated-code/)
 * Just fyi, you have depreciated code in your plugin.
 * `get_currentuserinfo()`
 * needs to be replaced with
 *     ```
       if(function_exists('wp_get_current_user')) {
       	$current_user = wp_get_current_user();
       } else if(function_exists('get_currentuserinfo')) {
       	$current_user = get_currentuserinfo();
       }
       ```
   
 * Best,
    Karl
 * [https://wordpress.org/plugins/wordpress-simple-survey/](https://wordpress.org/plugins/wordpress-simple-survey/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Braden Keith](https://wordpress.org/support/users/richard_steeleagency/)
 * (@richard_steeleagency)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/depreciated-code/#post-8722914)
 * Thanks [@designdrumm](https://wordpress.org/support/users/designdrumm/),
 * We will be updating a release soon to get it up to the new codex. It’s been a
   couple of years, but we’re back at it!

Viewing 1 replies (of 1 total)

The topic ‘Depreciated Code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-simple-survey_2bc06a.svg)
 * [Wordpress Simple Survey](https://wordpress.org/plugins/wordpress-simple-survey/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-simple-survey/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-simple-survey/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-simple-survey/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-simple-survey/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-simple-survey/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Braden Keith](https://wordpress.org/support/users/richard_steeleagency/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/depreciated-code/#post-8722914)
 * Status: resolved