Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacing a deprecated function #37

Merged
merged 1 commit into from
Jul 8, 2019
Merged

Replacing a deprecated function #37

merged 1 commit into from
Jul 8, 2019

Conversation

sdrib
Copy link
Contributor

@sdrib sdrib commented Jun 5, 2019

The plugin should use wp_get_current_user() instead of the deprecated get_currentuserinfo().

Reference: https://developer.wordpress.org/reference/functions/get_currentuserinfo/

We need to use wp_get_current_user() instead of get_currentuserinfo()
@brettflorio
Copy link
Contributor

Thanks for the PR, @sdrib. We'll take a look and merge it in or respond further.

@rijarobinson rijarobinson self-assigned this Jul 8, 2019
@rijarobinson
Copy link
Contributor

This change looks great -- merging it in. Thanks for your contribution.

@rijarobinson rijarobinson merged commit 52b3dd1 into FoxyCart:master Jul 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants