The Wanderers' academy prospect will spend the first half of the season on loan with the League Two club, returning on New Year's Day.
Riley has made just nine professional appearances since breaking into the first team in 2011. He suffered a serious knee injury last summer, which kept him on the sidelines for the majority of last season.
Breaking news, transfer gossip, line ups and goal alerts from your football club - delivered direct to your mobile. Sign up for Sky Sports Alerts