The influence of short-range magnetic correlations on the superconducting transition temperature