A Bronx public school teacher has admitted she performed oral sex on a 14-year-old boy on “multiple occasions and in multiple locations” — but will not have to go to prison or surrender her teaching license.

Dori Myers, 29, a social studies teacher at The New School for Leadership and the Arts in Kingsbridge, pleaded guilty to a criminal sex act — a D felony requiring her to register as a sex offender.

Myers, the wife of a Rockland County sheriff’s officer, entered her plea in Manhattan Supreme Court on Wednesday, a day sooner than scheduled — thus letting her avoid the glare of the news media.

Prosecutors requested that Justice Michael Orbus sentence Myers to two years in prison and order that she surrender her New York state teaching certificate.

Instead, Orbus promised to give her 10 years’ probation.

Defense lawyer Andrew Stoll said Myers will be fired by the city Department of Education “and won’t be working for them anymore,” but asked the judge not to make her give up her license, according to a court transcript obtained by The Post.

“There is a possibility that she could teach adults now or in the future and we want to preserve that possibility,” Stoll said. “She still is a talented teacher and has those skills, and I don’t see any reason to destroy her ability to make a living and to contribute to society in a positive way.”

The judge relented, but added, “This would be a matter that any licensing agency will be able to consider, if they choose to do that, and of course any employer.” The state Education Department typically reviews such cases to determine whether to revoke an educator’s license.

Orbus also noted, “I just want to make the record clear that Ms. Myers is aware that she must register as a sex offender.”

Cops got word of Myers’ misdeeds after the boy — believed to be one of Myers’ students — told a classmate, who then notified a school administrator, police said.

Myers was arrested Jan. 19 and pleaded not guilty. At the time, Stoll called Myers “a model citizen who looks forward to clearing her name.”

Orbus set sentencing for Sept. 12, and ordered Myers to report immediately to probation.