Skip to content

Fix: Tutor LMS admin scripts break WPBakery backend editor drag and drop on Pages - #3281

Open
sazedul-haque wants to merge 1 commit into
devfrom
fix-wpbakery-confict
Open

sazedul-haque wants to merge 1 commit into
devfrom
fix-wpbakery-confict

Conversation

@sazedul-haque

Copy link
Copy Markdown
Collaborator

ClickUp ticket link: https://app.clickup.com/t/9018365849/z8zyy1vkw9

Description

  • Moved all DOM queries and body class logic inside readyState_complete
  • Early return when tutor-option-tabs is absent, preventing null class token on document.body that broke WPBakery drag-and-drop
  • Fixed body class inconsistency when click lands on a child span instead of the anchor itself by using the already-resolved dataTab
  • Removed enableSaveButton (dead code, never called)
  • Removed addBodyClass() from lib.js and its call sites (replaced with an inline guard that only runs when tab_page is present in the URL)

Testing

  • Tested
  • Not tested

Use of AI Tool

Used: Yes

Used for:

Code suggestion.

- Moved all DOM queries and body class logic inside readyState_complete
- Early return when tutor-option-tabs is absent, preventing null class
  token on document.body that broke WPBakery drag-and-drop
- Fixed body class inconsistency when click lands on a child span instead
  of the anchor itself by using the already-resolved dataTab
- Removed enableSaveButton (dead code, never called)
- Removed addBodyClass() from lib.js and its call sites (replaced with
  an inline guard that only runs when tab_page is present in the URL)
@sazedul-haque sazedul-haque added the 4.3.0 Tutor v4.3.0 label Dec 2, 2026
@sazedul-haque sazedul-haque changed the title refactor: scope navigation.js execution to Tutor settings screen Fix: Tutor LMS admin scripts break WPBakery backend editor drag and drop on Pages Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.3.0 Tutor v4.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant