Removed accidental variable duplication in the CustomPostType class.