SACRAMENTO (AP) — The state Assembly is advancing legislation to expand California’s sex education curriculum, requiring schools to teach more about sexually transmitted infections and discuss same-sex relationships when teaching HIV prevention.

AB329 by Assemblywoman Shirley Weber would combine the voluntary sexual health education courses taught in most schools with mandatory HIV prevention education offered in grades 7 through 12.

READ MORE: Proposed Bill Would Add COVID-19 Vaccine To California's Required Immunizations For Students

The San Diego Democrat says California’s sex education courses are outdated and often make gay, lesbian and transgender students feel excluded.

The Assembly approved it 47-24 Tuesday, sending it to the Senate.

READ MORE: Worker Seriously Burned In Explosion, Fire In Chipotle Of Downtown LA High-Rise, Dozens Evacuated

Visalia Republican Assemblyman Devon Mathis opposed it, saying lawmakers shouldn’t decide what other people’s kids learn about sex.

The legislation would still allow parents to exclude their children, but it would block districts from having opt-in policies requiring explicit approval.

MORE NEWS: Amid Blood Shortage, Krispy Kreme Offers Free Donuts To Donors

(Copyright 2015 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)