The extensive clearing and modification of forests by anthropogenic activities is a major driver of biodiversity loss. Declines of common species are especially concerning because of the potentially large cascading effects they might have on ecosystems. Regrowth of secondary forests may help reverse population declines by restoring habitats to similar conditions prior to land conversion but the value of these secondary forests to fauna is not well understood. We compared the abundance of a direct-developing terrestrial frog, Craugastor stejnegerianus, in riparian and upland habitats of pasture, secondary forest, and mature forest sites. Mean abundance per transect was lower in upland pasture compared to mature forest. Secondary forest had similar abundance to mature forest regardless of age. We show that conversion of forest habitat to pasture represents a conservation threat to this species. However, riparian buffers help mitigate the negative effect of conversion of forest to pasture, and regrowth of secondary forest is an effective management strategy for restoring the abundance of this common leaf-litter species.