A high school has recalled 240 leavers' yearbooks after a pupil staged a prank "wardrobe malfunction", exposing himself in the pictures.

The 16-year-old boy stood amongst other pupils proudly wearing their school uniforms at Ribblesdale High School in Clitheroe, Lancashire, when he played his joke as the camera flashed for the annual school leavers photo.

The prank was not spotted until after hundreds of the yearbooks had been handed out to students, prompting head teacher Stephen Cox to recall them all, the Lancashire Telegraph reports.

A new set was reissued to school leavers with the offending page taken out, but the photo has since appeared on social media amid claims the youngster has now been banned from his final school prom.

Mr Cox told the paper: "We recalled our school leavers' yearbooks when we realised that a pupil had made an unwise decision to play a practical joke in one of the group shots.

"We removed the relevant page and redistributed the books to the students.

"The pupil involved now realises his prank was ill-conceived and deeply regrets it.

"The issue has been dealt with appropriately and is now closed as far as the school is concerned."