Don't call get_the_ID to sustain 3.9.2 testing.

Addresses #2898