Title: Depreciated Function
Last modified: September 1, 2016

---

# Depreciated Function

 *  [shinerweb](https://wordpress.org/support/users/shinerweb/)
 * (@shinerweb)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/depreciated-function-2/)
 * With debug on, and WP 4.5.3, am seeing:
 * Notice: get_currentuserinfo is deprecated since version 4.5! Use wp_get_current_user()
   instead
 * Any chance of the next release changing the following:
 * wp-total-hacks.php
    Line 370 From: get_currentuserinfo(); To: wp_get_current_user();
 * Much obliged and many thanks in advance,
 * Regards
 * Chris
 * [https://wordpress.org/plugins/wp-total-hacks/](https://wordpress.org/plugins/wp-total-hacks/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Thorsten :-)](https://wordpress.org/support/users/per4mance/)
 * (@per4mance)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/depreciated-function-2/#post-8367821)
 * [@shinerweb](https://wordpress.org/support/users/shinerweb/)
 * Hi Chris,
 * Did you changed it by hand? Does it work?
 * Thanks for your feedback!
 * Kindest regards,
    Thorsten
 *  Thread Starter [shinerweb](https://wordpress.org/support/users/shinerweb/)
 * (@shinerweb)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/depreciated-function-2/#post-8372788)
 * Thorsten,
 * Yes, I can confirm it works.
 * Line 370 should read: **wp_get_current_user();**
 * The new block (lines **368-374**) should now look like:
 *     ```
       if ( $this->op( 'wfb_update_notification' ) ) {
       			global $user_login;
       			wp_get_current_user();
       			if ( !current_user_can( 'update_plugins' ) ) {
       				remove_action( 'admin_notices', 'update_nag', 3 );
       			}
       		}
       ```
   
    -  This reply was modified 9 years, 7 months ago by [shinerweb](https://wordpress.org/support/users/shinerweb/).
 *  [Thorsten :-)](https://wordpress.org/support/users/per4mance/)
 * (@per4mance)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/depreciated-function-2/#post-8374057)
 * Hi Chris,
 * thank you! Changed it 🙂
 * Kindest regards,
    Thorsten

Viewing 3 replies - 1 through 3 (of 3 total)

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

 * ![](https://s.w.org/plugins/geopattern-icon/wp-total-hacks_1b95bb.svg)
 * [WP Total Hacks](https://wordpress.org/plugins/wp-total-hacks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-total-hacks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-total-hacks/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-total-hacks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-total-hacks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-total-hacks/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Thorsten :-)](https://wordpress.org/support/users/per4mance/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/depreciated-function-2/#post-8374057)
 * Status: not resolved