Martin joined the League Two club in August and he was due to stay with John Coleman's side until January after making 10 appearances to date.
However, Leeds have activated a recall clause in the deal to bring the Scotland U-21 international back to Elland Road.
With Shane Higgs out with a thigh injury and Frank Fielding returning to Blackburn Rovers, Simon Grayson is short of cover.
Grayson is likely to include Martin on the bench for tonight's game against Bristol Rovers, with Casper Ankergren in line to start.