That's not identity theory; it's just a definition. That said, you can use "gender" in situations where using "sex" would cause uncomfortable atmosphere, correctly or no, so there's no way we're getting that distinction back.
There's another context: gender can mean the psychological and social aspect of sexual identification. I believe that's what the "identity-theory" bit refers to.