After his comments on the nationally televised World Series pregame show elicited online backlash, Keith Hernandez has apologized for a homophobic joke, saying he "made a poor attempt at humor."

Appearing on air before Wednesday night's Game 7 of the World Series, the former All-Star and veteran broadcaster was talking about the Los Angeles Dodgers when fellow analyst David Ortiz poked fun at L.A. outfielder Yasiel Puig's reputation for licking the bat during his plate appearances. Upon Ortiz leaning toward Hernandez and pretending he might lick his colleague on set, Hernandez was seen laughing, backing away from and putting a hand up to Ortiz before saying, "I'm not from San Francisco, bro!"

Feedback on social media included some wondering whether Hernandez actually said, "I'm from San Francisco, bro!" especially since the former Cardinals first baseman is from San Francisco. But plenty of others, including Yahoo Sports, immediately slammed the broadcaster for derogatorily referencing the city's noted gay community.

Hernandez has since released the following statement on the matter, as reported by the New York Daily News:

"I made a poor attempt at humor and never intended for it to be taken the wrong way," Hernandez said. "I am from San Francisco and as baseball fans know, the Dodgers/Giants rivalry runs deep. I did not grow up a Dodger fan and when it came down to Giants vs. Dodgers, I rooted for the Giants. I apologize if any offense was taken."