Updated

Britney Spears can't even visit her children now.

The troubled pop star may not see 2-year-old Sean Preston and 1-year-old Jayden James -- who are in the custody of Spears' ex-husband, Kevin Federline -- until she complies with a court order, Superior Court Commissioner Scott Gordon ruled.

The order, dated Wednesday, does not spell out what directives Spears defied. A hearing in the matter was scheduled for Oct. 26.

A message left with Spears' attorney, Anne Kiley, was not immediately returned.

In the past, Gordon has reprimanded Spears for not complying with other court orders, repeatedly saying that she lost primary custody to Federline due to her own choices.

Among other things, Gordon has ordered her to undergo random weekly drug testing, citing evidence that Spears engaged in "habitual, frequent and continuous use of controlled substances and alcohol."

She could not visit with her children without a parenting coach present. The coach participated in the emergency hearing Wednesday. Both parents were ordered to remain sober around their children.