-
Notifications
You must be signed in to change notification settings - Fork 116
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
Add custom JS to fix select all toggle on alerts list #1665
Add custom JS to fix select all toggle on alerts list #1665
Conversation
classes/class-alerts-list.php
Outdated
* Remove the WP core tags - suggest script on the alerts list screen. | ||
* This is not needed, but more importantly it was breaking the select all functionality. | ||
*/ | ||
wp_deregister_script( 'tags-suggest' ); |
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.
❗️issue
This causes the Alerts screen to not work for me. Which version of WP are you on? I've tested on 6.7.1 and 6.6.2.
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.
OMG, great catch 🤦🏻♂️. I have reverted that and added a few lines of JS to re-enable the select all toggle.
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.
@marcinkrzeminski I think some extra files have gotten in. This is working for me now but those files should probably be removed.
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.
@marcinkrzeminski This looks good, thank you! There's a merge conflict but after that's resolved it's good to go.
…not-working # Conflicts: # ui/js/alerts-list.js
Fixes #1661
It turned the
inline-edit-post
script which is a dependency forwp-stream-alerts
has atags-suggest
as a dependency which was causing issues with select all on the Alerts list screen. The solution was to deregister that script on that screen.Checklist
contributing.md
).Release Changelog