William agreed to attack . He declared that James ' newborn son was the `` pretended Prince of Wales '' . William agreed to invade and issued a declaration which referred to James ' newborn son as the `` pretended Prince of Wales '' .