(d) a provision that, despite the adultery of the applicant prior to the application, the husband shall pay to the applicant, or to any officer of the court or a third person, such weekly sum not exceeding $25 as the court may consider reasonable for the maintenance of each child of the applicant whom the husband is legally liable to maintain, until each such child attains the age of 18 years, and in such case the Court may, if it thinks fit, make a further provision that the legal custody of the children while under the age of 18 years shall be committed to a relative of the applicant or of her husband or to a third person. In making such provision the court shall have regard primarily to the interests of the children; (Amended by Act 6 of 1987 and Act 17 of 1990)