The thermal structure of the magnetized solar transition region