The identity of a minor who is the subject of an action under this section and the identity of the minor's parents, guardian and legal custodian shall be kept confidential and may not be disclosed, except to the court, the parties, their counsel, witnesses and other persons approved by the court.