-
Notifications
You must be signed in to change notification settings - Fork 45
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
fix: remove OneSignal script from the modal checkout #2029
Conversation
includes/class-modal-checkout.php
Outdated
@@ -947,6 +947,16 @@ public static function remove_hooks() { | |||
] | |||
); | |||
} | |||
if ( is_plugin_active( 'onesignal-free-web-push-notifications/onesignal.php' ) ) { |
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.
I don't think we need to check for the active plugin here... if it's not, the hook will not be registered, nothing will be removed, and everything will be fine
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.
Ah good call, thanks @leogermani! I removed this check in 20f00c7 🙂
Thanks @leogermani! |
Hey @laurelfulford, good job getting this PR merged! 🎉 Now, the Please check if this PR needs to be included in the "Upcoming Changes" and "Release Notes" doc. If it doesn't, simply remove the label. If it does, please add an entry to our shared document, with screenshots and testing instructions if applicable, then remove the label. Thank you! ❤️ |
All Submissions:
Changes proposed in this Pull Request:
The OneSignal signup bell shows in the modal checkout; it shouldn't be loaded there.
See 1200550061930446-as-1209206364302813
How to test the changes in this Pull Request:
Other information: