On the regularity criterion for the 2D Boussinesq equations involving the temperature