Wharton, 29, has made 263 appearances for the club and scored 87 goals.
He made his debut in 2008, and returned to the club in 2018 and is the third top scorer for the club.
Keep up-to-date with our exclusive email newsletters.