Title: Fix deprecated method call
Last modified: October 9, 2017

---

# Fix deprecated method call

 *  Resolved [20×6](https://wordpress.org/support/users/20x6/)
 * (@20x6)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/fix-deprecated-method-call/)
 * Hi-
 * I am having an intermittent issue with the nm-wp-login shortcode. If I put it
   on page to render a sign in form the page does not always redirect properly. 
   If I got directly from the sign up success page to the sign in page in a brand
   new session(with chrome in incognito) logging in takes me to the log in page.
   it does not redirect me to the page I chose in settings. I am not sure what the
   root cause is but I did noticed a couple of warnings in the logs. First: `get_currentuserinfo()/
   app/wp-content/plugins/wp-registration/classes/plugin.class.php:488` get_currentuserinfo()
   is deprecated and should be replaced with wp_get_current_user()
 * Second: in the nm_login_empty() function, the `$user` references nothing. Should
   this pull from the global $user variable and check to see if it is a wp_error
   instead?

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

 *  [Umesh Ghimire](https://wordpress.org/support/users/ughimire1/)
 * (@ughimire1)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/fix-deprecated-method-call/#post-9571776)
 * Hello @20*6 🙂
    Are you using our plugin ([user-registration](https://wordpress.org/plugins/user-registration/))?
   I think you are using [Simple User Registration](https://wordpress.org/plugins/wp-registration/)
   plugin.
 *  Thread Starter [20×6](https://wordpress.org/support/users/20x6/)
 * (@20x6)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/fix-deprecated-method-call/#post-9573170)
 * Yes! Sorry. I posted to the wrong forum.

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

The topic ‘Fix deprecated method call’ is closed to new replies.

 * ![](https://ps.w.org/user-registration/assets/icon-256x256.gif?rev=3284028)
 * [User Registration & Membership - Free & Paid Memberships, Subscriptions, Content Restriction, User Profile, Custom User Registration & Login Builder](https://wordpress.org/plugins/user-registration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-registration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-registration/)
 * [Active Topics](https://wordpress.org/support/plugin/user-registration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-registration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-registration/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [20×6](https://wordpress.org/support/users/20x6/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/fix-deprecated-method-call/#post-9573170)
 * Status: resolved