Whenever any street, alley or other public way is vacated by official action as provided by law, the zoning district adjoining the side of such public way shall be extended automatically, depending on the side or sides to which such lands revert, to include the right of way thus vacated, which shall thenceforth be subject to all regulations of the extended district or districts.