(a) Whenever a testator shall have a child born after the making of a last will, either in the lifetime or after the death of such testator, and shall die leaving such child, so afterborn, unprovided for by any settlement, and neither provided for, nor in any way mentioned in such will, every such child shall succeed to the same portion of such parent's real and personal estate, as would have descended or been distributed to such child, if such parent had died intestate, and shall be entitled to recover the same portion from the devisees and legatees, in proportion to and out of the parts devised and bequeathed to them by such will.
(b) The word “child” as used in subsection (a) of this section shall be construed to include an illegitimate child, provided that in cases where such testator is the father, he admitted of record paternity of such child by signing the official birth certificate or paternity has been established by DNA testing; or he was adjudged the father of such child by a court of competent jurisdiction; or by written acknowledgment he recognized such child as his.