Select > Object > All Text Objects incorrectly selects hidden/locked grouped text
Illustrator 24.2.3 (64-bit)
Select > Object > All Text Objects incorrectly selects hidden/locked grouped text.
This causes two issues:
1. hidden/locked groups of text shouldn't be selected at all by this command. (It won't actually select a hidden group of text if the TextFrame(s) inside the group are also explicitly hidden individually).
2. In a case where everything is unhidden/unlocked, this command selects the GROUP of TextFrames, not the TextFrames directly. This command will actually correctly select TextFrames in a group directly if there is another type of object sharing the group, like a pathItem, for some strange reason. But if a group is solely comprised of TextFrames then the group itself will be selected incorrectly instead of the TextFrames every time.
This is an immensely difficult and annoying problem to try to work around, especially in ExtendScript as it is difficult to make sure any sneaky GroupItem objects didn't make it into the selection.