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

Replace set_current_user call with wp_set_current_user to fix a PHP notice #1262

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

adamziel
Copy link
Collaborator

Fixes the following logged message in wp-admin:

[16-Apr-2024 21:06:32 UTC] PHP Deprecated:  Function set_current_user is deprecated since version 3.0.0! Use wp_set_current_user() instead. in /wordpress/wp-includes/functions.php on line 135
[16-Apr-2024 21:06:32 UTC] PHP Notice:  Object of class WP_User could not be converted to int in /wordpress/wp-includes/pluggable.php on line 2

@adamziel adamziel merged commit d098173 into trunk Apr 16, 2024
4 of 5 checks passed
@adamziel adamziel deleted the fix-php-notice branch April 16, 2024 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant