-
Notifications
You must be signed in to change notification settings - Fork 198
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
Render Back to lesson when next_lesson_url has no value #7642
Conversation
Test the previous changes of this PR with WordPress Playground. |
Not sure who to ask for a review, so I clicked on the system's suggestion. Sorry if I asked the wrong person. |
Test the previous changes of this PR with WordPress Playground. |
Test the previous changes of this PR with WordPress Playground. |
Test the previous changes of this PR with WordPress Playground. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @renintw!
Looks good and works well.
I went ahead and updated the tests, and did some other minor adjustments to pass checks.
Much appreciated for the help! |
Resolves WordPress/Learn#2687
Proposed Changes
When completing the quiz of the last lesson (example), it displays a 'Continue to next lesson' button which doesn't open anywhere.
Does it make sense to change to something like 'Back to lesson'?
I noticed that the
next_lesson_url
is checked here so that it doesn't render the button on the bottom left when it doesn't have a value. The changes here refer to the logic there.Testing Instructions
Pre-Merge Checklist