Unless a pedestrian is arrested he/she need not provide ID. However, many LEO either don't know the law or they disrespect it...
The first sentence of the quoted statement is sufficiently inaccurate to be misleading, but people should do their own research of Texas Penal Code section 38.02. The second sentence of the quoted statement is true, in my opinion.