Skip to content

Fix WP_User constructor in shibboleth_authenticate_user#9

Open
MrAlexWeber wants to merge 1 commit intomitcho:masterfrom
MrAlexWeber:patch-1
Open

Fix WP_User constructor in shibboleth_authenticate_user#9
MrAlexWeber wants to merge 1 commit intomitcho:masterfrom
MrAlexWeber:patch-1

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