si-lohan-cp-01465564

Lindsay Lohan has been sentenced to jail for violating her probation. (Damian Dovarganes/Associated Press)

Lindsay Lohan is heading back to jail, with a Los Angeles judge giving the actress a 30-day sentence for probation violation on Wednesday.

Superior Court Judge Stephanie Sautner sentenced the actress Wednesday for violating the terms of her release by being terminated from a community service assignment at a women's shelter.

The actress admitted she violated her probation.

Sautner imposed a complicated sentence on the actress, telling her that she will now have to perform all of her community service at the county morgue or risk serving an additional 270 days in jail.

The actress's sentence will be shortened due to jail overcrowding.

It will be Lohan's fifth jail sentence since being arrested twice for drunken driving in 2007. The 25-year-old last served 35 days on house arrest on a four-month jail sentence.