Minecraft wiki entry for Pre-flattening, associated text: Nether portals created in version 1.6.4 and earlier automatically determined their orientation based on neighboring blocks. When version 13w37a added the ability to create larger portals, they started using data values to keep track of their orientation, and old portals with a data value of 0 would randomly close when upgrading to 1.7.