A federal judge has dismissed a lawsuit against Florida's parental rights bill, dubbed by critics as the "don't say gay" bill, which bans classroom instruction on "sexual orientation" or "gender identity from kindergarten through third grade."

U.S. District Judge Allen Winsor, a judge in Tallahassee, Florida, ruled on Wednesday that students, parents, and teachers didn't prove that they have legal standing in challenging the law after filing a revised lawsuit.

The lawsuit claimed that the law passed by Florida lawmakers and signed by Republican Governor Ron DeSantis is unconstitutional.

Winsor said in the ruling that the plaintiffs didn't show they suffered harm from the law which could be remedied by a court decision in their favor, and added that a majority of the plaintiffs' claims of harm are from the law's existence versus its enforcement.

WHITE HOUSE SLAMS FLORIDA'S PARENTAL RIGHTS BILL AS IT TAKES EFFECT: 'THIS IS DISCRIMINATION’

Gov. Ron DeSantis

Florida Gov. Ron DeSantis speaks during a news conference at Bill Baggs Cape Florida State Park, Thursday, Dec. 1, 2022, on Key Biscayne, Fla.  (AP Photo/Lynne Sladky)

The federal judge also tossed an earlier version of the lawsuit in September. A similar lawsuit was filed in Orlando and also dismissed.

Bryan Griffin, press secretary for DeSantis, told Fox News Digital that the law empowers parents.

"Thanks to Governor DeSantis, the Parental Rights in Education law empowers parents and protects children. It's common sense. We appreciate that the courts continue to recognize this and reject activist attempts to overturn the duly enacted laws of the state of Florida," Griffin said.

FLORIDA'S DESANTIS SIGNS PARENTAL RIGHTS IN EDUCATION BILL, HITS BACK AT HOLLYWOOD CRITICS

Florida Gov. Ron DeSantis

Florida Gov. Ron DeSantis gives a victory speech after defeating Democratic gubernatorial candidate Rep. Charlie Crist during his election night watch party at the Tampa Convention Center on November 8, 2022 in Tampa, Florida. (Photo by Octavio Jones/Getty Images)

Many Democrats and left-leaning advocacy groups have dubbed the piece of legislation the "Don't Say Gay" bill, a characterization that DeSantis and Republicans reject.

In a tweet, President Biden called the bill "hateful."

"I want every member of the LGBTQI+ community — especially the kids who will be impacted by this hateful bill — to know that you are loved and accepted just as you are. I have your back, and my Administration will continue to fight for the protections and safety you deserve," Biden said.

CLICK HERE TO GET THE FOX NEWS APP

Biden waving

Classified documents found at President Biden’s home were among the biggest stories of January.  (Anna Moneymaker)

The Associated Press and Fox News' Jessica Chasmar contributed to this report.