Disable Bulk actions > Remove tags when there are no tags to remove
One minor but awkward scenario for removing tags is when the result set does not contain any items with tags assigned. The text in the Remove tags modal doesn't really make sense if there are no tags, because it assumes there are tags to display in the modal:
The ideal solution is: when the result set contains no items with tags associated with it, add the disabled class to the "Remove tags" option in the Bulk actions menu:
I'm not sure how challenging that might be to do. A less ideal fallback approach might be to customize the text in the modal for the "no items with tags" case, but 1) the user has to close a modal that wasn't helpful to them, and 2) I'm not sure if the pluralize method handles a "zero" case, or whether there is a good alternative way to add an i18n string for the zero case.
Note that the Add tags and Change visibility options don't have this potential scenario, so we only have to deal with it for Remove tags.