All the provisions of any charter of any such municipality, except so much as refers to the name, and all ordinances, resolutions and official acts ordained, passed or executed by such municipality, shall remain legal and of full force and effect; and all provisions, ordinances, resolutions and official acts thereafter ordained, passed or executed under the new name of such municipality, shall be legal and of full force and effect as if passed, ordained or executed under the former name of such municipality.