Caroline Wozniacki, the former No. 1 women’s tennis player in the world, will end her retirement and attempt a comeback, she announced Thursday.