Toward the end of filming Zac Efron had appendicitis. It started out as a stomach ache but he had it checked out that night after filming and he had surgery that same night.
When Ned Gold goes to meet the principal for the second time, he is dressed up flamboyantly and he called it "peacocking". This is a tongue-in-cheek reference to Pick Up Artists.
When Scarlett looks at the old picture of Mike in yearbook, you can briefly see Scarlett's picture in the yearbook before it scrolls up to Mike's. If you watch closely, you can see that Scarlett's maiden name is Porter.
In one scene, Mike wakes up and begins describing his "dream" of being in high school again only to find his daughter, Maggie, caring for him. This is an homage to the counterpart scene in Back to the Future in which Marty McFly wakes up and finds his teen-aged mother caring for him.