A child born before wedlock becomes legitimate by the subsequent marriage of its parents.