12. The respondents to a petition shall be the Attorney-General and all persons whose interests may be affected by the order of legitimation asked for, and the court may at any time direct any persons not made respondents to be made respondents, and to be served with the petition, affidavit, and consents, if any.