Donovan Turner pleaded guilty to child endangerment on Friday.
The 19-year-old was charged with leaving his 18-month-old son in a closet while the child's mother took Turner to work.
Maintenance workers found the boy inside a unit at a north Wichita complex. They told police the air conditioner was not on, and the apartment was around 90 degrees.
Police said, Turner and his girlfriend, Destiny Lee, told them, they didn't want to wake-up the child and only expected to be gone for 30 minutes.
A judge sentenced Turner to probation.
Lee will go to trial next month.
Parents accused of leaving their little boy alone in apartment complex have been charged with child endangerment.
Two maintenance workers for the Twin Rivers apartment complex, 21st and Amidon, found the boy in a bedroom closet in May. They called police, saying the child was soaked in urine, and without a sippy cup or bottle.
The air conditioner was not on, police said the apartment was around 90 degrees.
Police have said the mom admitted to leaving her son home alone before, and told investigators she had left to take her husband to work. The parents told the police the boy was sleeping, and they didn't want to wake him.
Prosecutors charged Destiny Lee, 18, and Donovan Turner, 19, with one count each of endangering a child, which is a misdemeanor. They will return to court for a preliminary hearing Aug. 13.