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

Don't enqueue scripts in embeds #249

Merged
merged 1 commit into from
Apr 3, 2024
Merged

Don't enqueue scripts in embeds #249

merged 1 commit into from
Apr 3, 2024

Conversation

akirk
Copy link
Member

@akirk akirk commented Apr 3, 2024

Fixes #247.

We don't need to register and enqueue our scripts at init, it's enough at wp_enqueue_scripts. A side-effect is that this won't be enqueued in embeds as reported in #247.

@akirk akirk requested a review from psrpinto April 3, 2024 14:22
Copy link
Member

@psrpinto psrpinto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing!

@akirk akirk merged commit 36f5b58 into main Apr 3, 2024
2 checks passed
@akirk akirk deleted the fix-enqueued-scripts-embed branch April 3, 2024 14:27
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.

WordPress embeds mistakenly load Chatrix JavaScript
2 participants