Wilshere, 29, confirmed his second Bournemouth exit in May after making 17 appearances last season, scoring twice.
He helped Bournemouth reach the play-offs after finishing sixth, but they were beaten by Brentford over two legs.
After spending the summer considering his options, ex-England team-mate Rooney has given Wilshere a place in his pre-season squad.
Need a VPN? Or seeking to switch? Then support Tribal Football by clicking here to sign up with our official partners NordVPN. Not only will you receive the best VPN experience, but also great discounts by signing up via Tribal Football. Thanks for your support!