gocodebox / lifterlms

LifterLMS, a WordPress LMS Solution: Easily create, sell, and protect engaging online courses.
https://lifterlms.com
GNU General Public License v3.0
174 stars 134 forks source link

Setup Wizard doesn't fire when plugin activated from Plugins > Add New #2622

Closed brianhogg closed 2 months ago

brianhogg commented 3 months ago

Reproduction Steps

  1. Go to Plugins > Add New, and search for LifterLMS
  2. Activate plugin
  3. Navigate away or refresh the page

Expected Behavior

Shows the setup wizard

Actual Behavior

Setup wizard not shown, LifterLMS can't be used without manual steps or finding the tool to trigger

We could either redirect to the wizard once when the user navigates away, and/or show a prompt on LifterLMS screens when something (ie. checkout page) is not correctly configured.

This issue has be recreated:

brianhogg commented 2 months ago

In general this doesn't work the same because of the AJAX-ifying of the plugin activation process since WP 6.5, but the fix to switch from a transient to an option should at least reliably show the wizard on the next page load.