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

Fix WP_User constructor in shibboleth_authenticate_user #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MrAlexWeber
Copy link

According to the WordPress documentation, the WP_User constructor takes
User's ID, a WP_User object, or a user object from the DB. as its first parameter.

As I understand it, that means the plugin in this revision is trying to pass a username as this parameter, which will therefore never succeed to get the appropriate user data.

Passing 0 as the first parameter is the same as the default constructor, and fixes this error in my testing.
source: http://developer.wordpress.org/reference/classes/wp_user/__construct/

According to the WordPress documentation, the WP_User constructor takes
`User's ID, a WP_User object, or a user object from the DB.` as its first parameter.

As I understand it, that means the plugin in this revision is trying to pass a username as this parameter, which will therefore never succeed to get the appropriate user data.
source: http://developer.wordpress.org/reference/classes/wp_user/__construct/
@michaelryanmcneill
Copy link

Hello, thank you for reporting this issue. I released version 1.8 today to resolve this and other issues. I am the new maintainer of the plugin and all further work on the plugin will be done in a new GitHub repository. If you have any further issues, please don't hesitate to report them in the new repository.

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.

3 participants