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 get_course_data method if checking for not logged in user #545

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

Conversation

kamilaindustrymedia
Copy link

If we don't declare user ID in LP_User_Item_Course constructor, it will use result of get_current_user_id() (in /inc/user-item/class-lp-user-item.php, line 121), which might return wrong user item.

…y logged one

If we don't declare user ID in `LP_User_Item_Course` constructor, it will use result of `get_current_user_id()` (in /inc/user-item/class-lp-user-item.php, line 121), which returns wrong user item.
@tungnxt89
Copy link
Collaborator

Hi kamilaindustrymedia,

Thanks for that, but we have a comment in the code, you need to check false when calling the method "get_course_data", and we'll remove this code soon when already check everywhere.

Thank so much.

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

2 participants