Automattic / sensei

Sensei LMS - Online Courses, Quizzes, & Learning
https://senseilms.com
GNU General Public License v2.0
543 stars 197 forks source link

Handle LM blocks being used outside LM templates #7145

Open Imran92 opened 1 year ago

Imran92 commented 1 year ago

Steps to Reproduce

  1. Activate a block theme
  2. Go to Appearance -> Editor
  3. Open any template other than the LM template
  4. Try to find a LM specific block (Like 'Lesson actions') block

What I Expected

Either not be able to find the LM blocks in non-LM templates or even if we add them in the right context, for example, in a non-LM Lesson template, it shouldn't look broken

What Happened Instead

We could add them in all templates and they looked broken after being added in non-LM lesson templates

PHP / WordPress / Sensei LMS version

8.1, 6.3, 4.16.1

Browser / OS version

Chrome, Opera

6662212-zd-a8c

github-actions[bot] commented 1 year ago

Support References

This comment is automatically generated. Please do not edit it.